Contact: fumanchu@aminus.org

Log in as guest/geniusql to create tickets

Changeset 212

Show
Ignore:
Timestamp:
11/05/07 12:52:57
Author:
fumanchu
Message:

Either I was wrong about changes to co_consts in Python 2.5, or it was transitory. Looking at compile.c in Python's trunk, it seems to add None even if the func has no docstring.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/geniusql/logic.py

    r194 r212  
    437437        idx = 0 
    438438        names = (attr,) 
    439         # It also stopped prepending None to co_consts... 
    440         consts = (criteria,) 
    441439        # ...and nested_scopes are now "always on". 
    442440        co_flags |= codewalk.CO_NESTED 
     
    444442        idx = 1 
    445443        names = ('x', attr) 
    446         consts = (None, criteria) 
     444     
     445    consts = (None, criteria) 
    447446     
    448447    co = [124, 0, 0,