data method access
Pigio®
eviola at dsi.unive.it
Sat Dec 7 09:35:58 EST 2002
More information about the Python-list mailing list
Sat Dec 7 09:35:58 EST 2002
- Previous message (by thread): Info search
- Next message (by thread): data method access
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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?
- Previous message (by thread): Info search
- Next message (by thread): data method access
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list