Python Global Constant

Christoph Becker-Freyseng webmaster at beyond-thoughts.com
Wed Jul 9 12:32:27 CEST 2003


>>*** module any ***
>>import dirs;
>>def CheckDir(Dir):
>>  if Dir=dirs.Const_Up: xxx
> 
> 
> This code should work fine, although you might want to follow
> the Python conventions ........

What about using __builtins__ wouldn't make this the constant really global?


cbf






More information about the Python-list mailing list