Defining Python Data Classes

preview_player
Показать описание
One new and exciting feature that came out in Python 3.7 was the data class. A data class is a class typically containing mainly data, although there aren’t really any restrictions.

With data classes, you don’t have to write boilerplate code to get proper initialization, representation, and comparisons for your objects.

Рекомендации по теме
Комментарии
Автор

Congratulations! Excellent presentation. Thank you!

spartanapela
Автор

Thank you for taking the time to create this tutorial.

AtlantaTerry
Автор

Wow - I’ve been studying for 6 months. Haven’t made it to classes yet - this is exciting. Love the video!

Sirjosephcharles
Автор

Can we get an updated video with new features

chriskeo
Автор

how do we add a counter to a dataclass. to keep count of how many instances are created.

irmdev
Автор

hey bro i want one question and i want solution from you i have one arry like string ["4599"], ["6625"], ["7777"], ["12345"], [7070] but i want print only this out put like this ["4599"], ["6625"], ["7777"] means i want print that string which string have same string last two or 1st and next if are same and or whole are same like in this arry ["7777"] how will sove this question

python
Автор

Thanks a lot for this very useful tutorial.

parthasarathirath