Namespaces are one honking great idea
BartC
bc at freeuk.com
Sun Jul 3 20:19:34 EDT 2016
On 04/07/2016 00:21, Lawrence D’Oliveiro wrote:
> On Monday, July 4, 2016 at 10:02:59 AM UTC+12, Kevin Conway wrote:
>> If the problem with using classes to satisfy the namespace need is
>> that it's unwieldy to use dot qualified paths then isn't that quite similar
>> to saying namespaces are unwieldy?
>
> Python has a simple solution to that:
>
> a = mod.a
> b = mod.b
Except that then
a = 0
doesn't do the same thing as:
mod.a = 0
But it'll probably work for things that are not assigned to.
--
Bartc
More information about the Python-list
mailing list