- 30 Jan, 2003 3 commits
-
-
Guido van Rossum authored
the same function, don't save the state or write a BUILD opcode. This is so that a type (e.g. datetime :-) can support protocol 2 using __getnewargs__ while also supporting protocol 0 and 1 using __getstate__. (Without this, the state would be pickled twice with protocol 2, unless __getstate__ is defined to return None, which breaks protocol 0 and 1.)
-
Raymond Hettinger authored
-
Raymond Hettinger authored
Contributed by Jp Calderone.
-
- 29 Jan, 2003 21 commits
-
-
Mark Hammond authored
Note this code is not used by the core on Win32, but in a block used only by Windows CE.
-
Guido van Rossum authored
-
Tim Peters authored
popped a MARK, but without stack emulation the disassembler couldn't know that, and subsequent indentation got hosed. Now the disassembler does do enough stack emulation to catch this. While I was at it, also added lots of sanity checks for other stack operations, and correct use of the memo. This goes (I think) a long way toward being a "pickle verifier" now too.
-
Guido van Rossum authored
types. The special handling for these can now be removed from save_newobj(). Add some testing for this. Also add support for setting the 'fast' flag on the Python Pickler class, which suppresses use of the memo.
-
Guido van Rossum authored
want it to be. Log both the old and new mode.
-
Jack Jansen authored
- Added test_aepack to the mac/darwin specific tests.
-
Skip Montanaro authored
-
Michael W. Hudson authored
[ 676521 ] parser module validation failure bugfix candidate.
-
Jack Jansen authored
-
Jack Jansen authored
-
Jack Jansen authored
test_macfs found an error on the first day of its existence: round trips for date values to FSSpec.{Get,Set}Dates didn't work in MacPython-OS9. Fixed.
-
Guido van Rossum authored
between cPickle and pickle.py regarding __safe_for_unpickling__ before Python 2.3.
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
TempAbstractPickleTests, because they don't work with cPickle yet.
-
Fred Drake authored
more, to make it easier to tell apart from the verbatim content.
-
Fred Drake authored
interfere with the flow of the sentence.
-
Tim Peters authored
-
Tim Peters authored
pickletools: Import decode_long from pickle instead of duplicating it.
-
Tim Peters authored
-
Tim Peters authored
sys.platform != mac. Likewise expect test_win{reg,sound} to get skipped on non-win32 platforms.
-
- 28 Jan, 2003 16 commits
-
-
Jack Jansen authored
-
Jack Jansen authored
-
Jack Jansen authored
-
Tim Peters authored
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 authored
__getnewargs__ method.
-
Guido van Rossum authored
Also tidied up a few lines, got rid of apply(), added a comment.
-
Tim Peters authored
fails, for reasons unrelated to this patch.
-
Fred Drake authored
-
Fred Drake authored
-
Guido van Rossum authored
-
Guido van Rossum authored
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 authored
-
Jack Jansen authored
and also create a symlink "python" pointing to "python$(VERSION)". Fixes #675745.
-
Jack Jansen authored
non-windowing Python.
-
Jack Jansen authored
macostools.
-
Guido van Rossum authored
isn't checked in yet. :-(
-