Changeset 2645:676782996648 in livinglogic.python.xist

Show
Ignore:
Timestamp:
02/05/07 20:32:24 (13 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Enable passing a dict to Pool.register() (This makes it possible to do
xsc.Pool(vars()).)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/ll/xist/xsc.py

    r2641 r2645  
    33903390                if isinstance(value, type): # This avoids recursive module registration 
    33913391                    self.register(value) 
     3392        elif isinstance(object, dict): 
     3393            for value in object.itervalues(): 
     3394                self.register(value) 
    33923395        elif object is True: 
    33933396            self.bases.append(getpoolstack()[-1])