global, globals(), _global ?

Daniel Dittmar daniel.dittmar at sap.corp
Wed Mar 15 14:21:16 CET 2006


Roy Smith wrote:
> In article <dv8oqe$1cbn$1 at ulysses.news.tiscali.de>,
>  robert <no-spam at no-spam-no-spam.com> wrote:
> 
>> Using global variables in Python often raises chaos. Other languages use 
>> a clear prefix for globals.
> 
> Unsing globals raises chaos in any language.  They should be shunned and 
> avoided.

Solution: replace globals with Singletons ;-)

Daniel



More information about the Python-list mailing list