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
On Mon, May 6, 2019 at 6:09 AM Zakariae Saih wrote:
>
> Hello python team!
> you should consider adding the ability to create multiple constructors on one
> class like c# and Java it is really useful.
> Example:
> i want a constructor takes 1 argument and other constructor takes 2 and
>
Hello python team!
you should consider adding the ability to create multiple constructors on
one class like c# and Java it is really useful.
*Example*:
i want a constructor takes 1 argument and other constructor takes 2 and
another one takes none in the same class. so when i want to create an