A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-April/022055.html below:

[Python-Dev] Namespaces

[Python-Dev] NamespacesAahz aahz@pythoncraft.com
Sun, 31 Mar 2002 21:58:23 -0500
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?



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4