empty classes as c structs?

Alex Martelli aleaxit at yahoo.com
Tue Feb 8 06:01:23 EST 2005


Nick Coghlan <ncoghlan at iinet.net.au> wrote:

> > We could use __add__, instead for combining namespaces
> 
> Update already let's us combine namespaces. To create a new object that merges
> two namespaces do:
>    namespace.update(namespace(ns_1), ns_2)

One thing I'd like to see in namespaces is _chaining_ -- keeping each
namespace separate but having lookups proceed along the chain.  (The
best semantics for _bindings_ as opposed to lookups isn't clear though).


Alex



More information about the Python-list mailing list