Using Multiple Constructors

Mikhael Loo mikhael at
Fri Aug 3 22:51:48 CEST 2001

How do you use multiple constructors in a python class.  I'm guesing that it
doesn't involve multiple __init__ functions.

Below is my idea but I'm thinking there must be another method that  is
evading me.

Class MyObject:
    Constructor1(self, number):
    Constructor2(self, string):

Help anyone?

More information about the Python-list mailing list