- 22 Eki, 1998 1 kayıt (commit)
-
-
Guido van Rossum yazdı
""" I've attached a long overdue patch to pickle.py to bring it to format 1.3, which is the same as 1.2 except that the binary float format is supported. This is done using the new platform-indepent format features of struct. This patch also gets rid of the undocumented obsolete Pickler dump_special method. """
-
- 15 Eyl, 1998 1 kayıt (commit)
-
-
Guido van Rossum yazdı
there's an __getinitargs__() method), if a TypeError occurs, catch and reraise it but add info to the error about the class name being instantiated. This makes debugging a lot easier if __getinitargs__() returns something bogus (e.g. a string instead of a singleton tuple).
-
- 27 May, 1998 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
walks and quacks like a dictionary.
-
- 13 Nis, 1998 1 kayıt (commit)
-
-
Guido van Rossum yazdı
would still try to call the class...
-
- 31 Mar, 1998 2 kayıt (commit)
-
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
-
- 26 Mar, 1998 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 13 Şub, 1998 1 kayıt (commit)
-
-
Fred Drake yazdı
-
- 26 Ock, 1998 1 kayıt (commit)
-
-
Barry Warsaw yazdı
Fixed problems when unpickling in restricted execution environments. These methods try to assign to an instance's __class__ attribute, or access the instances __dict__, which are prohibited in REE. For the first two methods, I re-implemented the old behavior when assignment to value.__class__ fails. For the load_build() I also re-implemented the old behavior when inst.__dict__.update() fails but this means that unpickling in REE is semantically different than unpickling in unrestricted mode.
-
- 10 Ara, 1997 2 kayıt (commit)
-
-
Guido van Rossum yazdı
The attached patch adds the following behavior to the handling of REDUCE codes: - A user-defined type may have a __reduce__ method that returns a string rather than a tuple, in which case the object is saved as a global object with a name given by the string returned by reduce. This was a feature added to cPickle a long time ago. - User-defined types can now support unpickling without executing a constructor. The second value returned from '__reduce__' can now be None, rather than an argument tuple. On unpickling, if the second value returned from '__reduce__' during pickling was None, then rather than calling the first value returned from '__reduce__', directly, the '__basicnew__' method of the first value returned from '__reduce__' is called without arguments. I also got rid of a few of Chris' extra ()s, which he used to make python ifs look like C ifs.
-
Guido van Rossum yazdı
mode. The pickler always uses base 10 so the default base should be fine. (The base gets us in trouble when there's no strop module, as the atoi() in string.py only supports base 10. This is for JPython.)
-
- 05 Ara, 1997 1 kayıt (commit)
-
-
Guido van Rossum yazdı
not define __getinitargs__, bypass the __init__ constructor completely. This uses the trick of instantiating an empty dummy class and then changing inst.__class__ to the real class. This is done in two places: once for the INST and once for the OBJ format code. Also replaced the much outdated long doc string with a short summary of the module; the information of that doc string is already incorporated in the library reference manual.
-
- 12 Eyl, 1997 1 kayıt (commit)
-
-
Guido van Rossum yazdı
- 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.
-
- 08 Eyl, 1997 1 kayıt (commit)
-
-
Guido van Rossum yazdı
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!
-
- 03 Eyl, 1997 1 kayıt (commit)
-
-
Guido van Rossum yazdı
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.
-
- 25 Nis, 1997 1 kayıt (commit)
-
-
Guido van Rossum yazdı
- which_module() search __main__ last; - load_inst() no longer checks that the classname really refers to a class.
-
- 11 Nis, 1997 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 09 Nis, 1997 1 kayıt (commit)
-
-
Guido van Rossum yazdı
with cPickle.
-
- 14 Mar, 1997 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 07 Eki, 1996 1 kayıt (commit)
-
-
Guido van Rossum yazdı
but a built-in function is not.
-
- 08 Agu, 1996 2 kayıt (commit)
-
-
Guido van Rossum yazdı
Don't use assignments into inst.__dict__ to restore instance variables; use setattr() instead.
-
Guido van Rossum yazdı
longer complain that __getinitargs__ is an ugly name.
-
- 22 Tem, 1996 1 kayıt (commit)
-
-
Guido van Rossum yazdı
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.
-
- 15 May, 1996 1 kayıt (commit)
-
-
Guido van Rossum yazdı
numbers here, and so that atol() doesn't barf on the trailing 'L'. Add a test case involving a long integer.
-
- 12 Nis, 1996 1 kayıt (commit)
-
-
Guido van Rossum yazdı
Use atoi(), atol(), atof() instead of load_atomic for seed-up.
-
- 07 Agu, 1995 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 22 Haz, 1995 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 10 Nis, 1995 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 14 Mar, 1995 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 09 Mar, 1995 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 04 Mar, 1995 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 16 Şub, 1995 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 10 Ock, 1995 1 kayıt (commit)
-
-
Guido van Rossum yazdı
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)
-