Package lepl :: Package support :: Module context :: Class NamespaceMap
[hide private]
[frames] | no frames]

Class NamespaceMap

source code


A store for namespaces.

This subclasses threading.local so each thread effectively has its own instance (see test).

Instance Methods [hide private]
 
__init__(self) source code
 
get(self, name, default=None)
This gets the namespace associated with the name, creating a new namespace from the second argument if necessary.
source code