[Python-3000] Suggestion to replace `global' keyword with `modular' ...

chris at seberino.org chris at seberino.org
Fri Jul 7 05:45:04 CEST 2006


> What you're calling 'true globals,' other languages (e.g. PHP) call
> superglobals. Python does have these, sort of: you can emulate a
> superglobal by sticking things into __builtins__, which isn't
> particularly clean, but gets the job done.

Thanks for reply.  It appears from your comments above that
you are agreeing with me that what Python currently calls
"globals" are not really "true globals" the way many other
languages & people think about it.

> I'm a complete -1 on replacing the name 'global' for no good reason

Didn't you just supply the 'good reason'
in the sense that the current usage is ambiguous in some sense
that could be made more precise with a different word?

> a further -1 on the word 'modular,' which to me implies that the
> variable itself is composed of, or can be broken into, modules.

Well a Python can be broken into modules yes.  And a 'modular'
variable would be at the 'module level'.  Still seems like
'modular' would avoid the ambiguity of 'global'.


chris


More information about the Python-3000 mailing list