[Python-Dev] Namespaces (original) (raw)
Aahz aahz@pythoncraft.com
Sun, 31 Mar 2002 21:58:23 -0500
- Previous message: [Python-Dev] Re: PEP 279
- Next message: [Python-Dev] Namespaces
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sun, Mar 31, 2002, Tim Peters wrote:
Names always live in the local, global or builtin namespaces.
Well, no. First-level names, yes, but each object itself is a namespace, so every name will be bound to an object that can contain names. To use my favorite example:
def f():
pass
f.permissions = 'author'
(I'm being picky about this because I'm in the middle of writing my PyPerl tutorial for OSCON, and I think this is one of the areas that really needs to be accurate -- so if I'm wrong, I want to know about it.)
Aahz (aahz@pythoncraft.com) <*> http://www.pythoncraft.com/
Why is this newsgroup different from all other newsgroups?
- Previous message: [Python-Dev] Re: PEP 279
- Next message: [Python-Dev] Namespaces
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]