]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
New version from Jim Fulton to fix a problem that Eric Raymond ran
authorGuido van Rossum <guido@python.org>
Tue, 9 May 2000 18:14:50 +0000 (18:14 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 9 May 2000 18:14:50 +0000 (18:14 +0000)
commitea2b7157ababce79234978416a05a3bc7eddf960
tree9066355920e5aee7caa7aed436f92179105b9960
parent625d70a7a6fed4193380cb410795e54a6069f3bf
New version from Jim Fulton to fix a problem that Eric Raymond ran
into.  Jim writes:

The core dump was due to a C decrement operation
in a macro invocation in load_pop.  (BAD)

I fixed this by moving the decrement outside
the macro call.

I added a comment to load_pop and load_mark
to document the fact that cPickle separates the
unpickling stack into two separate stacks, one for
objects and one for marks.

I also moved some increments out of some macro
calls (PyTuple_SET_ITEM and PyList_SET_ITEM).
This wasn't necessary, but made me feel better. :)

I tested these changes in *my* cPickle, which
doesn't have the new Unicode stuff.
Modules/cPickle.c