Hi,

it is possible to define multiple initialization methods so that the
method is used that fits?

I am thinking of something like this:

  def __init__(self, par1, par2):
    self.init(par1, par2);

  def __init__(self, par1):
    self.init(par1, None)

  def init(self, par1, par2):
     ...
     ...

So if the call is with one parameter only the second class is executed
(calling the 'init' method with the second parameter set to 'None' or
whatever. But this example does not work. 

How to get it work?

Alex

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to