Creating New Types (Classes) (Theory of Python) (Python Tutorial)

preview_player
Показать описание
When it comes to creating new classes, you can call the type() function directly or use the class statement. All instances are connected to the class they came from, and their namespaces falls back to the class. I also discuss when it is appropriate to use classes in Python and when it is not.

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

14:00 is that true for the suite used in the class definition or just for instances of the class?

iMerkinator