Use of variables form outside the class.

Peter Torstenson p.t at iname.com
Thu Jul 29 08:43:34 EDT 1999


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







More information about the Python-list mailing list