Nick Coghlan [Fri, 24 Jan 2014 13:05:45 +0000 (23:05 +1000)]
Issue 20317: Remove debugging code from contextlib
- Alex J Burke noticed a debugging raise in the commit that
fixed the original bug reported in issue 20317
- this showed that multiple iterations through the affected
loop wasn't actually being tested
Terry Jan Reedy [Wed, 22 Jan 2014 02:12:24 +0000 (21:12 -0500)]
Issue #20818: Remove code from idlelib.CallTipWindow.showtip that is now
completely redundant. After 16638 patch, CallTips.get_argspec trims over-long
signature strings as well as docstring lines.
Terry Jan Reedy [Wed, 22 Jan 2014 01:45:17 +0000 (20:45 -0500)]
Issue #16638: Include up to 5 docstring header lines (before first blank) in
Idle calltips. This is needed for builtins, such bytes (which is why 5).
Based on patch by Serhiy Storchaka.
Serhiy Storchaka [Tue, 21 Jan 2014 20:26:52 +0000 (22:26 +0200)]
Issue #2382: SyntaxError cursor "^" now is written at correct position in most
cases when multibyte characters are in line (before "^"). This still not
works correctly with wide East Asian characters.
Zachary Ware [Tue, 21 Jan 2014 19:49:22 +0000 (13:49 -0600)]
Issue #20301: Mention the correct KEY_* value as the default
for 'access' in winreg.DeleteKeyEx. Already correct in the docs
function signature and docstring. Noticed by Justin Foo.
Victor Stinner [Tue, 21 Jan 2014 00:41:00 +0000 (01:41 +0100)]
Issue #20311: select.epoll.poll() now rounds the timeout away from zero,
instead of rounding towards zero. For example, a timeout of one microsecond is
now rounded to one millisecond, instead of being rounded to zero.
R David Murray [Sat, 18 Jan 2014 19:56:10 +0000 (14:56 -0500)]
#19855: restore use of LC_ALL, not LC_MESSAGES
I didn't realize LC_ALL was an override, and I should have. I tried to
make a test, but it is not clear that the LC variables actually affect
the strings that uuid is using to parse the command output.
Zachary Ware [Fri, 17 Jan 2014 21:23:42 +0000 (15:23 -0600)]
Issue #20265: Updated some parts of the Using Windows document.
Includes:
-mention cx_Freeze instead of py2exe (at least until py2exe supports Python 3)
-update ActivePython link
-Remove mention of platforms that were never supported by Python 3 (Win9x, DOS)
Serhiy Storchaka [Thu, 16 Jan 2014 15:15:49 +0000 (17:15 +0200)]
Issue #19936: Added executable bits or shebang lines to Python scripts which
requires them. Disable executable bits and shebang lines in test and
benchmark files in order to prevent using a random system python, and in
source files of modules which don't provide command line interface. Fixed
shebang line to use python3 executable in the unittestgui script.
R David Murray [Mon, 13 Jan 2014 18:19:21 +0000 (13:19 -0500)]
#20206, #5803: more efficient algorithm that doesn't truncate output.
This fixes an edge case (20206) where if the input ended in a character
needing encoding but there was no newline on the string, the last byte
of the encoded character would be dropped. The fix is to use a more
efficient algorithm, provided by Serhiy Storchaka (5803), that does not
have the bug.
Senthil Kumaran [Sun, 12 Jan 2014 06:20:16 +0000 (22:20 -0800)]
Issue #19092 - Raise a correct exception when cgi.FieldStorage is given an
invalid file-obj. Also use __bool__ to determine the bool of the FieldStorage
object.
Issue #13107: argparse and optparse no longer raises an exception when output
a help on environment with too small COLUMNS. Based on patch by
Elazar Gershuni.
Issue #18960: Fix bugs with Python source code encoding in the second line.
* The first line of Python script could be executed twice when the source
encoding (not equal to 'utf-8') was specified on the second line.
* Now the source encoding declaration on the second line isn't effective if
the first line contains anything except a comment.
* As a consequence, 'python -x' works now again with files with the source
encoding declarations specified on the second file, and can be used again
to make Python batch files on Windows.
* The tokenize module now ignore the source encoding declaration on the second
line if the first line contains anything except a comment.
* IDLE now ignores the source encoding declaration on the second line if the
first line contains anything except a comment.
* 2to3 and the findnocoding.py script now ignore the source encoding
declaration on the second line if the first line contains anything except
a comment.