many constructors in a class?

climb65 climb65 at laposte.net
Wed Aug 14 10:16:31 EDT 2013


Hello,

here is a small basic question :

Is it possible to have more than one constructor (__init__ function) in a 
class? For instance, to create an object with 2 different ways? If my 
memory is good, I think that with C++ it is possible.

Thanks for your answer.



More information about the Python-list mailing list