How to Have Multiple Constructors in Python - Python Init Method Tutorial

preview_player
Показать описание

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

Extremely bad practice — never ever write polymorphic init methods in Python!
(rather, provide static factory methods to return different subtypes. then, rather than calc(1, 2), you‘d write calc.of_many(1, 2) etc.)

falklumo
Автор

Do you think you could make a video on decorators? I never really understood them

geowhat