Kurt B. Kaiser [Thu, 14 Feb 2008 04:11:52 +0000 (04:11 +0000)]
Corrected some bugs in AutoComplete. Also, Page Up/Down in ACW implemented;
mouse and cursor selection in ACWindow implemented; double Tab inserts current
selection and closes ACW (similar to double-click and Return); scroll wheel now
works in ACW. Added AutoComplete instructions to IDLE Help.
Backport of r53679
Kurt B. Kaiser [Thu, 14 Feb 2008 04:02:10 +0000 (04:02 +0000)]
1. Avoid hang when encountering a duplicate in a completion list. Bug 1571112.
2. Duplicate some old entries from Python's NEWS to IDLE's NEWS.txt
Backport of r53042
Kurt B. Kaiser [Thu, 14 Feb 2008 03:25:59 +0000 (03:25 +0000)]
Some syntax errors were being caught by tokenize during the tabnanny
check, resulting in obscure error messages. Do the syntax check
first. Bug 1562716, 1562719 Backport of r52083
Lars Gustäbel [Mon, 11 Feb 2008 18:36:07 +0000 (18:36 +0000)]
Backport the nts() function from the trunk. This fixes problems with
the xstar format that puts extra fields inside the space that POSIX
has reserved for the prefix field.
Walter Dörwald [Thu, 7 Feb 2008 19:35:17 +0000 (19:35 +0000)]
Backport LaTeX version of r60649:
Clarify that the output of TextCalendar.formatmonth() and
TextCalendar.formatyear() for custom instances won't be influenced by calls
to the module global setfirstweekday() function. Fixes #2018.
Walter Dörwald [Wed, 6 Feb 2008 14:39:06 +0000 (14:39 +0000)]
Remove month parameter from Calendar.yeardatescalendar(),
Calendar.yeardays2calendar() and Calendar.yeardayscalendar() as the methods
don't have such a parameter. Fixes issue #2017. (2.5 backport of r60618)
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!