Overloading __init__ & Function overloading
Fredrik Lundh
fredrik at pythonware.com
Fri Sep 30 11:59:32 EDT 2005
"Iyer, Prasad C" wrote:
> Thanks a lot for the reply.
> But I want to do something like this
>
> class BaseClass:
> def __init__(self):
> # Some code over here
> def __init__(self, a, b):
> # Some code over here
> def __init__(self, a, b, c):
> # some code here
did you read the FAQ I pointed you to? it shows how to deal with exactly
that case.
</F>
More information about the Python-list
mailing list