data method access

Pigio® eviola at dsi.unive.it
Sat Dec 7 09:35:58 EST 2002


Does it possible to modify variable inside method  __init__ ?
Example:

class A:
   def __init__(test)
      self.test=test

I don't write: A.__init__.test=='overvrite'
In fact when I write A.__init__.__dict__ , answer is {}.

What can I do to inert inside __init__  another attribute testTwo== test?





More information about the Python-list mailing list