many constructors in a class?

duncan smith buzzard at invalid.invalid
Wed Aug 14 11:07:33 EDT 2013


On 14/08/13 15:16, climb65 wrote:
> 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.
>


http://stackoverflow.com/questions/5738470/whats-an-example-use-case-for-a-python-classmethod


Duncan



More information about the Python-list mailing list