April 1, 2002
2:58 a.m.
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?