| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
only on 32-bit systems.
|
| |
|
|
| |
MemoryError was not guaranteed.
|
| |
|
|
|
| |
only available if asserts are left in the code, in cases where they
can't be triggered from Python code.
|
| |
|
|
|
| |
the xstar format that puts extra fields inside the space that POSIX
has reserved for the prefix field.
|
| |
|
|
| |
properly in tempfile.NamedTemporaryFile
|
| | |
|
| |
|
|
|
|
| |
if default_factory is set to a bound method.
Backport of r60663.
|
| |
|
|
|
|
| |
r60579 broke a test test_compile, which seems to test an "implementation detail" IMO.
Also test that this correction does not impact the debugger.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
iteration of a while statement.
The mapping between bytecode offsets and source lines (lnotab) did not contain
an entry for the beginning of the loop.
Now it does, and the lnotab can be a bit larger:
in particular, several statements on the same line generate several entries.
However, this does not bother the settrace function, which will trigger only
one 'line' event.
The lnotab seems to be exactly the same as with python2.4.
|
| |
|
|
| |
doesn't reliably produce an exception.
|
| | |
|
| |
|
|
|
|
| |
Try to prevent this test from being flaky. We might need a sleep in here
which isn't as bad as it sounds. The close() *should* raise an exception,
so if it didn't we should give more time to sync and really raise it.
|
| |
|
|
|
|
|
|
|
|
| |
Let the O/S supply a port if none of the default ports can be used.
This should make the tests more robust at the expense of allowing
tests to be sloppier by not requiring them to cleanup after themselves.
(It will legitamitely help when running two test suites simultaneously
or if another process is already using one of the predefined ports.)
This will hopefully fix test_asynchat.
|
| |
|
|
|
| |
On some systems (e.g., Ubuntu on hppa) the flush()
doesn't (always) cause the exception, but the close() does.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
optimized the
whole construct away, even when an 'else' clause is present::
while 0:
print("no")
else:
print("yes")
did not generate any code at all.
Now the compiler emits the 'else' block, like it already does for 'if' statements.
Backport of r60265.
|
| | |
|
| | |
|
| |
|
|
|
|
| |
- Fix Issue #1703448: A joined thread could show up in the
threading.enumerate() list after the join() for a brief period until
it actually exited.
|
| | |
|
| | |
|
| |
|
|
|
| |
second line of code were not always recognized correctly.
(backport from rev. 60168)
|
| |
|
|
| |
MaildirMessage.
|
| | |
|
| |
|
|
|
|
| |
Fix for #1303614 and #1174712:
- __dict__ descriptor abuse for subclasses of built-in types
- subclassing from both ModuleType and another built-in types
|
| |
|
|
|
|
| |
hash(int(x))
for any integral Decimal instance x.
|
| |
|
|
|
|
|
|
|
| |
the art. It now complies latest specification and tests.
The only difference of this version with the one in the trunk
is that a small subset that hash tests were removed, because
they rely on modifications to core hash() function (see
issue 1182 for further details).
|
| |
|
|
|
| |
Patch #1637: fix urlparse for URLs like 'http://x.com?arg=/foo'.
Fix by John Nagle.
|
| |
|
|
|
|
| |
permissions and times.
(backport from r59712)
|
| |
|
|
|
| |
Regular Expression inline flags not handled correctly for some unicode
characters.
|
| |
|
|
| |
Fix issue #1313119.
|
| |
|
|
|
|
| |
the start.
(backport from r59260)
|
| |
|
|
| |
PyArgs_ParseTuple t# and w# formats truncated the lengths to 32bit.
|
| |
|
|
|
|
| |
attribute of an empty cell object. Now a ValueError is raised.
Backport of r59170.
|
| | |
|
| | |
|
| |
|
|
|
|
| |
Fix for #1444: utf_8_sig.StreamReader was (indirectly through decode())
calling codecs.utf_8_decode() with final==True, which falled with incomplete
byte sequences. Fix and test by James G. Sack.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When an unfinished generator-iterator is garbage collected, PyEval_EvalFrameEx
is called with a GeneratorExit exception set. This leads to funny results
if the sys.settrace function itself makes use of generators.
A visible effect is that the settrace function is reset to None.
Another is that the eventual "finally" block of the generator is not called.
It is necessary to save/restore the exception around the call to the trace
function.
This happens a lot with py3k: isinstance() of an ABCMeta instance runs
def __instancecheck__(cls, instance):
"""Override for isinstance(instance, cls)."""
return any(cls.__subclasscheck__(c)
for c in {instance.__class__, type(instance)})
which lets an opened generator expression each time it returns True.
And the problem can be reproduced in 2.5 with pure python code.
|
| |
|
|
| |
The C changes aren't quite the same as the patch given there; the test is.
|
| | |
|
| |
|
|
|
| |
Fixes Issue 1385: The hmac module now computes the correct hmac when using
hashes with a block size other than 64 bytes (such as sha384 and sha512).
|
| | |
|
| | |
|
| |
|
|
|
| |
to be orderable to properly represent them.
(backport from rev. 58122)
|
| |
|
|
| |
source encoding.
|
| | |
|
| | |
|
| |
|
|
|
|
| |
the fileobj argument has no usable name attribute (e.g. StringIO).
(backported from r57616)
|
| | |
|
| |
|
|
|
|
|
| |
read buffers.
Fixes #1730114.
(backport from rev. 56830)
|