a suggestion about _list_decorators() and similar.
they can be easily made into classes, i.e. non dynamic (and 
overloadable/patchable :-).

class _list_decorators( object):  #instead of def _list_decorators()
     .... all contents/decorators stays same...
 
    _funcs = _get_decorators( locals() )

    def __new__( klas):
        return klas._funcs

def _get_decorators( d):
    skip = '__module__', '__doc__',
    if 1:       #Whichever way preferred
        r = dict( (k,v) for k,v in d.iteritems() if k not in skip)
    or:
        r = d.copy()
        for s in skip: r.pop(s)
    return r

_def _tidy(fn): ...     #becomes global

the only prerequisite for this is to rename __del() and __set() into 
_del /_set or else they get looked up as private-named identifiers 
(?? no idea why).

ciao
svilen


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to