- 29 Ock, 2003 6 kayıt (commit)
-
-
Fred Drake yazdı
more, to make it easier to tell apart from the verbatim content.
-
Fred Drake yazdı
interfere with the flow of the sentence.
-
Tim Peters yazdı
-
Tim Peters yazdı
pickletools: Import decode_long from pickle instead of duplicating it.
-
Tim Peters yazdı
-
Tim Peters yazdı
sys.platform != mac. Likewise expect test_win{reg,sound} to get skipped on non-win32 platforms.
-
- 28 Ock, 2003 34 kayıt (commit)
-
-
Jack Jansen yazdı
-
Jack Jansen yazdı
-
Jack Jansen yazdı
-
Tim Peters yazdı
only get run by test_pickle.py now (& not by test_cpickle.py). This should be undone when protocol 2 is implemented in cPickle too. test_cpickle should pass again.
-
Guido van Rossum yazdı
__getnewargs__ method.
-
Guido van Rossum yazdı
Also tidied up a few lines, got rid of apply(), added a comment.
-
Tim Peters yazdı
fails, for reasons unrelated to this patch.
-
Fred Drake yazdı
-
Fred Drake yazdı
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
object.__reduce__, do a getattr() on the class so we can explicitly test for it. The reduce()-calling code becomes a bit more regular as a result. Also add support slots: if an object has slots, the default state is (dict, slots) where dict is the __dict__ or None, and slots is a dict mapping slot names to slot values. We do a best-effort approach to find slot names, assuming the __slots__ fields of classes aren't modified after class definition time to misrepresent the actual list of slots defined by a class.
-
Fred Drake yazdı
-
Jack Jansen yazdı
and also create a symlink "python" pointing to "python$(VERSION)". Fixes #675745.
-
Jack Jansen yazdı
non-windowing Python.
-
Jack Jansen yazdı
macostools.
-
Guido van Rossum yazdı
isn't checked in yet. :-(
-
Tim Peters yazdı
start for the C implemention of new pickle LONG1 and LONG4 opcodes (the linear-time way to pickle a long is to call _PyLong_AsByteArray, but the caller has no idea how big an array to allocate, and correct calculation is a bit subtle).
-
Guido van Rossum yazdı
possibility of calling save_reduce(). Add a special hack for this. The tests for this are much simpler now (no __getstate__ or __getnewargs__ needed).
-
Neal Norwitz yazdı
Check return value of PyLong_AsDouble(), it can return an error.
-
Guido van Rossum yazdı
after checking for __reduce__.
-
Guido van Rossum yazdı
fixed a bug in load_newobj().
-
Guido van Rossum yazdı
-
Barry Warsaw yazdı
-
Barry Warsaw yazdı
so merge from the bsddb-bsddb3-schizo-branch back to the trunk.
-
Tim Peters yazdı
-
Tim Peters yazdı
-
Tim Peters yazdı
was used before string-escape codecs were added to the core.)
-
Guido van Rossum yazdı
checks to save_reduce(), which can also be called from a subclass.) Also tweaked some more comments.
-
Tim Peters yazdı
-
Tim Peters yazdı
they're easier to read this way.
-
Guido van Rossum yazdı
-
Tim Peters yazdı
of the opcode character instead (but stripping the quotes). Added a proto 2 test section for the canonical recursive-tuple case. Note that since pickle's save_tuple() takes different paths depending on tuple length now, beefier tests are really needed (but not in pickletools); the "short tuple" case tried here was actually broken yesterday, and it's subtle stuff so needs to be tested.
-
Guido van Rossum yazdı
be one of 0, 1 or 2). I should note that the previous checkin also added NEWOBJ support to the unpickler -- but there's nothing yet that generates this.
-
Guido van Rossum yazdı
type 'object'. Also minor docstring tweakage, and rearranged a few lines in save().
-