• Jeremy Hylton's avatar
    Revise Connection. · 326ff391
    Jeremy Hylton authored
    Make _added_during_commit a regular instance variable.  Don't use
    try/finally to reset it; just clear it at the start of a transaction.
    XXX There was a test that needed to be removed, but it seemed to be
    just a shallow test that try/finally was used.  Can't see any feature
    that depends on specific of error handling: The txn is going to abort.
    
    Remove unused _opened instance variable.
    Split commit() into two smaller parts.
    Get rid of extra manipulation of _creating.
    Don't look for _p_serial of None; z64 is now required.
    Undo local variable aliases in subtransaction methods.
    
    Also, trivial change to pickle cache API -- get() works like dict get().
    326ff391
cPickleCache.c 30.6 KB