- 04 Feb, 2003 24 commits
-
-
Tim Peters authored
guarantee to keep valid pointers in its slots. tests: Moved ExtensionSaver from test_copy_reg into pickletester, and use it both places. Once extension codes get assigned, it won't be safe to overwrite them willy nilly in test suites, and ExtensionSaver does a thorough job of undoing any possible damage. Beefed up the EXT[124] tests a bit, to check the smallest and largest codes in each opcode's range too.
-
Neil Schemenauer authored
instead of raising a TypeError. Closes #660144 (again).
-
Tim Peters authored
Moved such EXT tests as currently exist from TempAbstractPickleTests to AbstractPickleTests, so that test_cpickle runs them too.
-
Neal Norwitz authored
-
Neal Norwitz authored
-
Walter Dörwald authored
subclasses. (Discussed in SF patch #665835)
-
Marc-André Lemburg authored
by Michael Stone (mbrierst). Python 2.1.4, 2.2.2 candidate.
-
Fred Drake authored
-
Walter Dörwald authored
signed/unsigned comparison warnings on the call to iconv(). Fix comment typos. From SF patch #680146.
-
Tim Peters authored
-
Walter Dörwald authored
str and unicode subclasses not just for generating the output but for testing too.
-
Walter Dörwald authored
so we can jump to the error handling code that does. (Spotted by Neal Norwitz)
-
Walter Dörwald authored
blindly assumed that tp_as_sequence->sq_item always returns a str or unicode object. This might fail with str or unicode subclasses. This patch checks whether the object returned from __getitem__ is a str/unicode object and raises a TypeError if not (and the filter function returned true). Furthermore the result for __getitem__ can be more than one character long, so checks for enough memory have to be done.
-
Jack Jansen authored
providing the format info, only the raw data). - Get rid of fsspecs. - Make the demo program at least do something if img not available.
-
Jack Jansen authored
-
Fred Drake authored
continuing to call these "time tuples" is misleading at best. Closes SF bug #671731; will backport to 2.2.x.
-
Fred Drake authored
-
Raymond Hettinger authored
-
Tim Peters authored
-
Tim Peters authored
generate these opcodes.
-
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 16 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
-