Use of variables form outside the class.
Peter Torstenson
p.t at iname.com
Thu Jul 29 08:43:34 EDT 1999
More information about the Python-list mailing list
Thu Jul 29 08:43:34 EDT 1999
- Previous message (by thread): global myfunc; def myfunc():
- Next message (by thread): Use of variables form outside the class.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I declare a variable "x" right in the beginning of a module. Later I declare a class with function defs. I managed to declare varibles inside the class and address them by putting "self." in front of the variable. How do I reach the "x" variable that is outside any class from inside the class functions? Peter Thorstenson The Newbie
- Previous message (by thread): global myfunc; def myfunc():
- Next message (by thread): Use of variables form outside the class.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list