- 31 Jan, 2003 14 commits
-
-
Guido van Rossum authored
save_reduce(), before the state is pickled. This makes it possible for an object to be referenced from its own (mutable) state.
-
Guido van Rossum authored
NEWOBJ to be generated.
-
Tim Peters authored
shortcut meaning 0L. This allows LONG1 to encode 0L in two bytes total.
-
Walter Dörwald authored
uninitialized variables.
-
Guido van Rossum authored
(This should also be done to cStringIO.)
-
Tim Peters authored
needs of pickling longs. Backed off to a definition that's much easier to understand. The pickler will have to work a little harder, but other uses are more likely to be correct <0.5 wink>. _PyLong_Sign(): New teensy function to characterize a long, as to <0, ==0, or >0.
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Kurt B. Kaiser authored
M rpc.py SF Bug 676398 Doesn't handle non-built-in exceptions 1. Move exception formatting to the subprocess; allows subclassing of exceptions, including subclasses created in the shell without introducing excessive complexity in the RPC mechanism. 2. Provide access to linecache from subprocess to support this.
-
Neal Norwitz authored
-
Tim Peters authored
-
Barry Warsaw authored
-
Tim Peters authored
is just as easy.
-
Neil Schemenauer authored
-
- 30 Jan, 2003 15 commits
-
-
Fred Drake authored
-
Guido van Rossum authored
classes have a __reduce__ that returns (self.__class__, self.__getstate__()). tzinfo.__reduce__() is a bit smarter, calling __getinitargs__ and __getstate__ if they exist, and falling back to __dict__ if it exists and isn't empty.
-
Tim Peters authored
-
Walter Dörwald authored
for this iconv() implementation in the init function. For encoding: use a byteswapped version of the input if neccessary. For decoding: byteswap every piece returned by iconv() if neccessary (but not those pieces returned from the callback) Comment out test_sane() in the test script, because whether this works depends on whether byte swapping is neccessary or not (an on Py_UNICODE_SIZE)
-
Tim Peters authored
in 2.3.
-
Tim Peters authored
_instantiate() method.
-
Fred Drake authored
-
Tim Peters authored
-
Michael W. Hudson authored
METH_NOARGS functions are still called with two arguments, one NULL, so put that back into the function definitions (I didn't know this until recently). Make get_history_length() METH_NOARGS.
-
Michael W. Hudson authored
[ 676342 ] after using pdb readline does not work correctly which is required to fix that bug. So maaybe a bugfix candidate.
-
Guido van Rossum authored
on the type instead of self.save(t). This defeated the purpose of NEWOBJ, because it didn't generate a BINGET opcode when t was already memoized; but moreover, it would generate multiple BINPUT opcodes for the same type! pickletools.dis() doesn't like this. How I found this? I was playing with picklesize.py in the datetime sandbox, and noticed that protocol 2 pickles for multiple objects were in fact larger than protocol 1 pickles! That was suspicious, so I decided to disassemble one of the pickles. This really needs a unit test, but I'm exhausted. I'll be late for work as it is. :-(
-
Guido van Rossum authored
-
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 11 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.
-