| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
For the case where the current globals match the previous frame's
globals, eliminates three tests in two if statements. For the case
where we just get __builtins__ from a module, eliminate a couple of
tests.
|
|
|
|
|
|
|
|
|
| |
gzip shouldn't raise ValueError on corrupt files
Currently the gzip module will raise a ValueError if the file was
corrupt (bad crc or bad size). I can't see how that applies to
reading a corrupt file. IOError seems better, and it's what code
will likely be looking for.
|
| |
|
|
|
|
|
| |
file can be dumped without (bogus) complaint if the the pickles were
created using a single pickle memo.
|
|
|
|
|
|
| |
merge_class_dict(): This was missing a decref.
Bugfix candidate.
|
|
|
|
|
| |
Added array.array to the types repr.py knows about, after a suggestion
from Jurjen N.E. Bos.
|
|
|
|
| |
Applied the skip test_ossaudiodev patch.
|
| |
|
| |
|
|
|
|
| |
the clipboard contains a filename that filename is used as the default.
|
| |
|
|
|
|
|
|
|
|
| |
It also prevents building against the real X headers, if installed.
After discussions with the Cygwin project lead, I believe that building
against the real X headers is OK. Especially, since the psuedo-X headers
are *not* installed by the Cygwin Tcl/Tk binary package.
|
|
|
|
|
|
| |
Note that this patch just reverts the lib_prefix (i.e., "cyg") portion
of my Tcl/Tk 8.3 patch. It seems that Cygwin Tcl/Tk is using a more
normal file naming convention again.
|
|
|
|
| |
unicode.
|
| |
|
|
|
|
| |
we have a symlink somewhere in the TESTFN path.
|
|
|
|
| |
to have a full dictionary interface.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
instead of raising a TypeError. Closes #660144 (again).
|
|
|
|
|
| |
Moved such EXT tests as currently exist from TempAbstractPickleTests to
AbstractPickleTests, so that test_cpickle runs them too.
|
| |
|
| |
|
|
|
|
| |
subclasses. (Discussed in SF patch #665835)
|
|
|
|
|
|
| |
by Michael Stone (mbrierst).
Python 2.1.4, 2.2.2 candidate.
|
| |
|
|
|
|
|
|
|
|
| |
signed/unsigned comparison warnings on the call to iconv().
Fix comment typos.
From SF patch #680146.
|
| |
|
|
|
|
|
| |
str and unicode subclasses not just for generating the output
but for testing too.
|
|
|
|
|
| |
so we can jump to the error handling code that does.
(Spotted by Neal Norwitz)
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
providing the format info, only the raw data).
- Get rid of fsspecs.
- Make the demo program at least do something if img not available.
|
| |
|
|
|
|
|
| |
continuing to call these "time tuples" is misleading at best.
Closes SF bug #671731; will backport to 2.2.x.
|
| |
|
| |
|
| |
|
|
|
|
| |
generate these opcodes.
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
| |
Imported the extension-registry dicts from copy_reg.py, in preparation for
tackling EXT[124].
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
all protocols, so tried them under all.
|
|
|
|
| |
hardcoded list.
|
|
|
|
| |
duplication. Note that these still don't get run under cPickle.
|
|
|
|
|
|
|
| |
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.
|