variable scope
bart
e_viola at libero.it
Thu Nov 21 12:18:31 EST 2002
Could I modify variable present inside an object's method from external
module without override method of this class?
Example:
-->Module A
class Person():
def __init__(self):
variable=value
-->Module B
Person.__init__.variable=value (it's surely mistake!!!)
Another question is: can I override an object's method locate in modeule
B from module A when this object is created from another functions
presents inside module B?
Example:
Module A ----> Module B ---> function A ---> function B ---> object A
thanks for yours attention...
- Ennio -
More information about the Python-list
mailing list