where are the "class variables"?
Dominik Kaspar
dokaspar at student.ethz.ch
Tue Sep 30 14:57:17 EDT 2003
More information about the Python-list mailing list
Tue Sep 30 14:57:17 EDT 2003
- Previous message (by thread): where are the "class variables"?
- Next message (by thread): where are the "class variables"?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
i'm used to java and its strict way of defining variables. so how is
it possible to reach something like a class variable in python?
with the following code i didn't have much succes...
class Server(threading.Thread):
running = 0 (??)
def run(self):
running = 1
while running:
print "do something here..."
def exit(self):
running = 0
thanks
-- dominik
- Previous message (by thread): where are the "class variables"?
- Next message (by thread): where are the "class variables"?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list