Snippets tagged “alternative-constructors”
1 snippet uses this tag.
- What is a clean "pythonic" way to implement multiple constructors?Python
A "pythonic" way to implement multiple constructors in Python is to use the @classmethod decorator.
1 snippet uses this tag.
A "pythonic" way to implement multiple constructors in Python is to use the @classmethod decorator.