[Python-Dev] [poll] New name for builtins (original) (raw)
Stephen Hansen shansen at advpubtech.com
Wed Nov 28 21:01:54 CET 2007
- Previous message: [Python-Dev] [poll] New name for __builtins__
- Next message: [Python-Dev] [poll] New name for __builtins__
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
(The lurker awakes...)
> If not that I suggest something like injectbuiltins. This > implies it's a command to eval/exec, and doesn't necessarily reflect > your current builtins (which are canonically accessible as an > attribute of your frame.)
You're misunderstanding the reason why builtins exists at all. It is used everywhere as the root namespace, not just as a special case to inject different builtins. ATM I'm torn between root and python.
Something with the word "global" speaks to it's real effect, except that the word already has an established meaning in Python as being 'global to the module level', and modifying builtins lets you be "global to the entire universe of that instance"
So I would humbly suggest universal. The names within are available everywhere. 'root' speaks to me too much of trees, and while namespaces may be tree-like, root alone doesn't say "root namespace"... and root_namespace is long.
(Then again, long for a feature that should only be used with care isn't a bad thing)
--Stephen -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/python-dev/attachments/20071128/78c86ba8/attachment.htm
- Previous message: [Python-Dev] [poll] New name for __builtins__
- Next message: [Python-Dev] [poll] New name for __builtins__
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]