backport of r60575 (issue #1750076): Debugger did not step on every 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.
Neal Norwitz [Sun, 27 Jan 2008 05:02:56 +0000 (05:02 +0000)]
Backport 60342:
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.
Neal Norwitz [Sun, 27 Jan 2008 01:24:44 +0000 (01:24 +0000)]
Backport r58453:
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.)
Thomas Heller [Thu, 24 Jan 2008 13:08:54 +0000 (13:08 +0000)]
Invert the checks in get_[u]long and get_[u]longlong. The intent was
to not accept float types; the result was that integer-like objects
were not accepted.
Gregory P. Smith [Tue, 22 Jan 2008 01:29:11 +0000 (01:29 +0000)]
Backport of r60190:
- 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.
Georg Brandl [Mon, 21 Jan 2008 18:35:52 +0000 (18:35 +0000)]
Issue #1882: when compiling code from a string, encoding cookies in the
second line of code were not always recognized correctly.
(backport from rev. 60168)
Gregory P. Smith [Sat, 19 Jan 2008 22:29:41 +0000 (22:29 +0000)]
backport r60104 + r60111 from trunk.
- Issue #1336: fix a race condition in subprocess.Popen if the garbage
collector kicked in at the wrong time that would cause the process
to hang when the child wrote to stderr.
Guido van Rossum [Fri, 18 Jan 2008 21:31:32 +0000 (21:31 +0000)]
Backport r55080:
Fix for #1303614 and #1174712:
- __dict__ descriptor abuse for subclasses of built-in types
- subclassing from both ModuleType and another built-in types
Gregory P. Smith [Thu, 17 Jan 2008 07:54:47 +0000 (07:54 +0000)]
** backport r60015 from trunk.
- Issue829951: In the smtplib module, SMTP.starttls() now complies with
RFC 3207 and forgets any knowledge obtained from the server not obtained
from the TLS negotiation itself. Patch contributed by Bill Fenner.
Thomas Heller [Wed, 16 Jan 2008 19:24:20 +0000 (19:24 +0000)]
Backport from trunk:
Fix a potential 'SystemError: NULL result without error'.
NULL may be a valid return value from PyLong_AsVoidPtr.
Also move an older ctypes NEWS item in the correct category.
Facundo Batista [Tue, 8 Jan 2008 16:20:31 +0000 (16:20 +0000)]
Decimal module and test cases were updated to their state of
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).
Backport r57216 (see issue #1731).
Add a hack (originally devised in a slightly different form by Thomas Wouters)
to prevent spurious tracebacks when a daemon thread's cleanup happens to wake
up when the world around it has already been destroyed.
This also backports other small changes to this file, essentially making
it identical to the trunk version.
Add some news items I missed. Careful inspection of the svn log output
reveals that a lot more are missing. If you checked anything into the
2.5.2 branch without updating Misc/NEWS, please correct your mistake!
Guido van Rossum [Thu, 13 Dec 2007 20:42:33 +0000 (20:42 +0000)]
Bug #1608: use -fwrapv when GCC supports it. This is important, newer
GCC versions may optimize away overflow buffer overflow checks without
this option! Thanks to Ismail Donmez. No thanks to the GCC devs.
Ronald Oussoren [Wed, 5 Dec 2007 20:43:57 +0000 (20:43 +0000)]
This is a backport of the fix in rev. 59369.
This patch doesn't remove the wrappers for OSADebug* API's but only defines
them when configure detects that the API's are present in the system's
header files.
Gerhard Häring [Sun, 25 Nov 2007 17:40:35 +0000 (17:40 +0000)]
- Backported a workaround for a bug in SQLite 3.2.x/3.3.x versions where a
statement recompilation with no bound parameters lead to a segfault
- Backported a fix necessary because of an SQLite API change in version 3.5.
This prevents segfaults when executing empty queries, like our test suite
does.
Ronald Oussoren [Thu, 22 Nov 2007 10:14:26 +0000 (10:14 +0000)]
A test that should test for osx >= 10.4.0 actually tested for os versions <= 10.4. The end result is that
a universal ("fat") build will claim to be a single-architecture on on OSX 10.5 (Leopard).
Walter Dörwald [Mon, 19 Nov 2007 12:43:39 +0000 (12:43 +0000)]
Backport r59049:
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.