Re: Overloading __init__ & Function overloading
- From: "Fredrik Lundh" <fredrik@xxxxxxxxxxxxxx>
- Date: Fri, 30 Sep 2005 17:59:32 +0200
"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>
.
- Prev by Date: Re: Cleveland Ohio Python Meeting
- Next by Date: Re: Python <=> Excel question
- Previous by thread: Re: Overloading __init__ & Function overloading
- Next by thread: LZW decompressor
- Index(es):
Relevant Pages
|