| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
- Don't use "from copy_reg import *".
- Use cls.__module__ instead of calling whichobject(cls, cls.__name__);
also try __module__ in whichmodule(), just in case.
- After calling save_reduce(), add the object to the memo.
|
|
|
|
|
|
|
|
|
|
| |
instance, use inst.__dict__.update(value) instead of a for loop with
setattr() over the value.keys(). This is more consistent (the
pickling doesn't use getattr() either but pickles inst.__dict__) and
avoids problems with instances that have a __setattr__ hook.
But it *is* a semantic change (because the setattr hook is no longer
used). So beware!
|
|
|
|
|
| |
copy.deepcopy() a while ago. Can't reproduce this but it doesn't
break anything and it looks like the code could have the same problem.
|
|
|
|
|
|
| |
- which_module() search __main__ last;
- load_inst() no longer checks that the classname really refers to a class.
|
| |
|
|
|
|
| |
with cPickle.
|
| |
|
|
|
|
| |
but a built-in function is not.
|
|
|
|
|
| |
Don't use assignments into inst.__dict__ to restore instance
variables; use setattr() instead.
|
|
|
|
| |
longer complain that __getinitargs__ is an ugly name.
|
|
|
|
|
|
|
|
|
|
| |
The optimizations consist mostly of using local variables to cache
methods or instance variables used a lot (e.g. "self.write").
The loopholes allows marshalling extension types as long as they have
a __class__ attribute (in which case they may support the rest of the
class piclking protocol as well). This allows pickling MESS extension
types.
|
|
|
|
|
| |
numbers here, and so that atol() doesn't barf on the trailing 'L'.
Add a test case involving a long integer.
|
|
|
|
| |
Use atoi(), atol(), atof() instead of load_atomic for seed-up.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
pickle.py: new low-level persistency module (used to be called flatten)
dbmac.py: stupid dbm clone for the Mac
anydbm.py: generic dbm interface (should be extended to support gdbm)
|