Using Multiple Constructors
Terry Reedy
tjreedy at home.com
Fri Aug 3 17:09:01 EDT 2001
"Mikhael Loo" <mikhael at lib-sys.com> wrote in message
news:3b6b0ffa_1 at news.chartertn.net...
> I just had another Idea,
> Perhaps what I need to do is sub class objects that only have
constructors.
> Is this the best way?
If you want to override methods, then yes.
>
> -Mikhael
> "Mikhael Loo" <mikhael at lib-sys.com> wrote in message
> news:3b6b0d1e_1 at news.chartertn.net...
> > How do you use multiple constructors in a python class
You do not. Python != C++ . You can initiate differently accoring
to type of arg given to __init__.
Terry J. Reedy
More information about the Python-list
mailing list