Steven D'Aprano writes:
> Modules are namespaces. So are packages.
>
> Classes and class instances are namespaces.
>
> Even function scopes are namespaces.
Steven implies it with his wording, but to make it explicit:
When you have a module, package, class, or instance-of-a-class object,
those o
On Sun, 08 Nov 2009 13:20:23 -0800, webtourist wrote:
> New bie Question:
> in "Zen of Python" - what exactly does the last one mean ? - Namespaces
> are one honking great idea -- let's do more of those!
>
> I mean why the emphasis ? Is it like saying "put modules into packages"
> in other progra
On Sun, 08 Nov 2009 21:20:23 -, webtourist
wrote:
New bie Question:
in "Zen of Python" - what exactly does the last one mean ? -
Namespaces are one honking great idea -- let's do more of those!
I mean why the emphasis ? Is it like saying "put modules into
packages" in other programming
New bie Question:
in "Zen of Python" - what exactly does the last one mean ? -
Namespaces are one honking great idea -- let's do more of those!
I mean why the emphasis ? Is it like saying "put modules into
packages" in other programming paradigm s ?
thanks
--
http://mail.python.org/mailman/list