- 04 Feb, 2003 4 commits
-
-
Guido van Rossum authored
this clarifies that they are part of an internal API (albeit shared between pickle.py, copy_reg.py and cPickle.c). I'd like to do the same for copy_reg.dispatch_table, but worry that it might be used by existing code. This risk doesn't exist for the extension registry.
-
Tim Peters authored
-
Tim Peters authored
-
Tim Peters authored
Imported the extension-registry dicts from copy_reg.py, in preparation for tackling EXT[124].
-
- 03 Feb, 2003 36 commits
-
-
Walter Dörwald authored
-
Walter Dörwald authored
module. This increases code coverage of Python/sysmodule.c from 68% to 77% (on Linux). The script doesn't exercise the error branch that handles an evil or lost sys.excepthook in Python/pythonrun.c::PyErr_PrintEx(). Also this script might not work on Jython in its current form. From SF patch #662807.
-
Tim Peters authored
all protocols, so tried them under all.
-
Tim Peters authored
hardcoded list.
-
Tim Peters authored
duplication. Note that these still don't get run under cPickle.
-
Tim Peters authored
because it seems more consistent with the rest of the code. cPickle_PyMapping_HasKey(): This extern function isn't used anywhere in Python or Zope, so got rid of it.
-
Tim Peters authored
earlier than the ones in which they were introduced.
-
Walter Dörwald authored
-
Guido van Rossum authored
extension implemented flush() was fixed. Scott also rewrite the zlib test suite using the unittest module. (SF bug #640230 and patch #678531.) Backport candidate I think.
-
Neal Norwitz authored
-
Walter Dörwald authored
-
Walter Dörwald authored
-
Guido van Rossum authored
outcome as __slotnames__ on the class. (Like __slots__, it's not safe to ask for this as an attribute -- you must look for it in the specific class's __dict__. But it must be set using attribute notation, because __dict__ is a read-only proxy.)
-
Andrew M. Kuchling authored
* Treat major, minor numbers of HTTP version as separate integers * Fix errors if version string is "HTTP/1.2.3" or even simply "BLAH". * send_error() checks if 'self.command' is a HEAD. However, if there's an error parsing the first line of the HTTP request the self.command wasn't set yet; force self.command to be initialized to None.
-
Guido van Rossum authored
slots even though they can be listed in __slots__.
-
Guido van Rossum authored
-
Tim Peters authored
are actually getting generated. Add helpered method ensure_opcode_in_pickle to do a correct job checking for that. Changed test_long1(), test_long4(), and test_short_tuples() to use it.
-
Skip Montanaro authored
-
Tim Peters authored
readability. load_bool(): Now that I know the intended difference between _PUSH and _APPEND, used the right one. Pdata_grow(): Squashed out a redundant overflow test.
-
Andrew M. Kuchling authored
-
Skip Montanaro authored
-
Skip Montanaro authored
-
Guido van Rossum authored
wasn't used outside the assert (and hence caused a compiler warning about an unused variable in NDEBUG mode). The assert wasn't very useful any more. _PyLong_NumBits(): moved the calculation of ndigits after asserting that v != NULL.
-
Guido van Rossum authored
huge. On older Linux systems, the C library's strtod() apparently gives up before seeing the end of the string when it sees so many digits that it thinks the result must be Infinity. (It is wrong, BTW -- there could be an "e-10000" hiding behind 10,000 digits.) The shorter shuge still tests what it's testing, without relying on strtod() doing a super job.
-
Andrew M. Kuchling authored
-
Fred Drake authored
exception, ResourceDenied. This is used to distinguish between tests that are skipped for other reasons (platform support, missing data, etc.) from those that are skipped because a "resource" has not been enabled. This prevents those tests from being reported as unexpected skips for the platform; those should only be considered unexpected skips if the resource were enabled.
-
Skip Montanaro authored
-
Andrew M. Kuchling authored
-
Skip Montanaro authored
-
Skip Montanaro authored
-
Skip Montanaro authored
-
Greg Ward authored
Rename 'whitespace' global to '_whitespace' -- it's not part of the public interface.
-
Walter Dörwald authored
that are no real tests, because test_b1 and test_b2 no longer exist. (Spotted by Raymond Hettinger)
-
Just van Rossum authored
-
Michael W. Hudson authored
[ 676342 ] after using pdb readline does not work correctly using Michael Stone's patch so the completer functionality of cmd is only setup between preloop and postloop.
-
Skip Montanaro authored
-