How to define a GLOBAL Variable ?
aahz at panix.com
Thu Aug 2 14:43:31 CEST 2001
In article <3b68d0d5 at news.iprimus.com.au>,
Peter Moscatt <pmoscatt at iprimus.com.au> wrote:
>If I wish to define a variable that I want to become global to ALL classes
>within a .py file - how is this best achieved ?
Depends whether you want write access to that variable or not. If it's
read-only, just set the variable at the top of the module.
--- Aahz <*> (Copyright 2001 by aahz at pobox.com)
Hugs and backrubs -- I break Rule 6 http://www.rahul.net/aahz/
Androgynous poly kinky vanilla queer het Pythonista
"activist for accuracy" --SJM
More information about the Python-list