![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archivegobal var inside class without notice???
From: <ajikoe@gmail.com>
Date: Tue Jun 14 2005 - 10:39:51 CEST
I have code like this:
class A:
def something(self):
if __name__ == '__main__':
I don't define global i but it will takes var i from outside of class
Can somebody explain this ???
pujo
|