Steven D'Aprano wrote:
Guido's time machine strikes again -- classes can have any number of constructors, and we've had the ability to do this since at least Python 2.2 if not earlier.

Although I think the OP wants all the constructors to have
the same name, which is more difficult to achieve in Python.

Personally I'm not a fan of that kind of overloading -- I
prefer different functions to have different names, so I'm
happy with the status quo.

--
Greg

_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to