| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
module necessarily raises.
|
| |
|
| |
|
| |
|
|
|
|
| |
This is nice for use with "make TESTOPTS='-u all' test".
|
| |
|
|
|
|
|
|
|
|
|
| |
non-us-ascii character sets in headers and bodies. Some API changes
(with DeprecationWarnings for the old APIs). Better RFC-compliant
implementations of base64 and quoted-printable.
Updated test cases. Documentation updates to follow (after I finish
writing them ;).
|
| |
|
| |
|
|
|
|
|
| |
method returns something that's not a C instance, its __init__ is
not called. [SF bug #537450]
|
| |
|
|
|
|
|
|
|
|
| |
Change pickling format for bools to use a backwards compatible
encoding. This means you can pickle True or False on Python 2.3
and Python 2.2 or before will read it back as 1 or 0. The code
used for pickling bools before would create pickles that could
not be read in previous Python versions.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PEP 285. Everything described in the PEP is here, and there is even
some documentation. I had to fix 12 unit tests; all but one of these
were printing Boolean outcomes that changed from 0/1 to False/True.
(The exception is test_unicode.py, which did a type(x) == type(y)
style comparison. I could've fixed that with a single line using
issubtype(x, type(y)), but instead chose to be explicit about those
places where a bool is expected.
Still to do: perhaps more documentation; change standard library
modules to return False/True from predicates.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
457466: popenx() argument mangling hangs python
226766: popen('python -c"...."') tends to hang
Fixes argument quoting in w9xpopen.exe for Windows 9x. w9xpopen.exe
also never attempts to display a MessageBox when not executed
interactively.
Added test_popen() test. This test currently just executes
"python -c ..." as a child process, and checks that the expected
arguments were all recieved correctly by the child process. This
test succeeds for me on Win9x, win2k and Linux, and I hope it does
for other popen supported platforms too :)
|
|
|
|
|
|
| |
broken w/ classmethods.
Bugfix candidate.
|
|
|
|
| |
Partly responds to SF bug #505152.
|
|
|
|
|
|
|
| |
on how a system is configured.
This closes SF bug #497160 (which has the patch) and #460613.
Bugfix candidate.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Fix floating point exception if mpz.powm(10, 1, 0) (modulus == 0).
Add a test.
|
|
|
|
|
| |
I left the email pkg alone; I'm not sure how Barry would like to handle
that.
|
|
|
|
| |
Add test for file.readinto().
|
| |
|
| |
|
|
|
|
| |
Bugfix candidate.
|
|
|
|
|
|
| |
under 2.0, 2.1 and 2.2.
Bugfix candidate.
|
| |
|
|
|
|
| |
methods in dict-proxy objects.
|
|
|
|
|
|
|
|
|
|
| |
This fixes the symptom, but PRINT_ITEM has no way to know what (if
anything) PyFile_WriteObject() writes unless the object being printed
is a string. When the object isn't a string, this fix retains the
guess that softspace should be set after PyFile_WriteObject().
We might want to say that it's the job of filelike-object write methods
to leave the file's softspace in the correct state. That would probably
be better -- but everyone relies on PRINT_ITEM to guess for them now.
|
| |
|
| |
|
|
|
|
| |
Closes SF patch 494871.
|
|
|
|
| |
converted to use unittest
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
One more time on this turkey, but duller instead of cleverer.
Curious: The docs say __getslice__ has been deprecated since 2.0, but
list.__getitem__ still doesn't work if you pass it a slice. This makes
it a lot clearer to emulate a list by *being* a list <wink>.
Bugfix candidate. Michael, just pile this patch on top of the others
that went by -- no need to try to pick these apart.
|
| |
|
|
|
|
| |
is "ignore". Fixes #529104.
|
|
|
|
| |
[ 516299 ] urlparse can get fragments wrong
|
|
|
|
|
|
|
|
|
|
|
| |
The proper fix is not quite what was submitted; it's really better to
take the class of the object passed rather than calling PyMethod_New
with NULL pointer args, because that can then cause other core dumps
later.
I also added a testcase for the fix to classmethods() in test_descr.py.
I've already applied this to the 2.2 branch.
|
| |
|
|
|
|
| |
add test case for bug #482460
|
|
|
|
|
|
| |
realloc slowdown. Some tests with shorter expressions lead me to the conclusion that it will eventually finish, but it may take a few weeks:-)
2.2.1 candidate.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
As promised in my response to the bug report, I'm not really fixing
it; in fact, one could argule over what the proper fix should do.
Instead, I'm adding a little magic that raises TypeError if you try to
pickle an instance of a class that has __slots__ but doesn't define or
override __getstate__. This is done by adding a bozo __getstate__
that always raises TypeError.
Bugfix candidate (also the checkin to typeobject.c, of course).
|