Victor Stinner [Wed, 22 Jan 2014 11:26:01 +0000 (12:26 +0100)]
asyncio: Cleanup logging in BaseEventLoop._run_once()
logger.log() is now responsible to format the timeout. It might be faster if
the log is disabled for DEBUG level, but it's also more readable and fix
an issue with Python 2.6 in the Trollius project.
Larry Hastings [Wed, 22 Jan 2014 11:05:49 +0000 (03:05 -0800)]
Two minor Argument Clinic bugfixes: use the name of the class in the
docstring for __new__ and __init__, and always use "goto exit" instead of
returning "NULL" for failure to parse (as _new__ and __init__ return ints).
Zachary Ware [Wed, 22 Jan 2014 05:07:12 +0000 (23:07 -0600)]
Argument Clinic: make 'destination' directive work.
Terry Jan Reedy [Wed, 22 Jan 2014 02:13:25 +0000 (21:13 -0500)]
Merge with 3.3
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:38 +0000 (20:45 -0500)]
Merge with 3.3
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.
Florent Xicluna [Wed, 22 Jan 2014 00:16:25 +0000 (01:16 +0100)]
Issue #17825: Cursor ^ is correctly positioned for SyntaxError and IndentationError.
Florent Xicluna [Wed, 22 Jan 2014 00:11:43 +0000 (01:11 +0100)]
Issue #17825: Cursor ^ is correctly positioned for SyntaxError and IndentationError.
R David Murray [Tue, 21 Jan 2014 23:30:42 +0000 (18:30 -0500)]
whatsnew: smtpd *map* argument, new ssl functions/methods.
Fleshed out Christian's placeholder for the new ssl methods.
Stefan Krah [Tue, 21 Jan 2014 21:59:57 +0000 (22:59 +0100)]
Issue #20246: Fix test failures on FreeBSD. Patch by Ryan Smith-Roberts.
Stefan Krah [Tue, 21 Jan 2014 21:58:40 +0000 (22:58 +0100)]
Issue #20246: Fix test failures on FreeBSD. Patch by Ryan Smith-Roberts.
Terry Jan Reedy [Tue, 21 Jan 2014 20:37:16 +0000 (15:37 -0500)]
Merge with 3.3
Terry Jan Reedy [Tue, 21 Jan 2014 20:36:51 +0000 (15:36 -0500)]
Issue #16630: Make Idle calltips work even when __getattr__ raises.
Initial patch by Roger Serwy.
Serhiy Storchaka [Tue, 21 Jan 2014 20:29:47 +0000 (22:29 +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.
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.
Victor Stinner [Tue, 21 Jan 2014 20:00:47 +0000 (21:00 +0100)]
Issue #20311: EpollSelector now also rounds the timeout towards zero, as
PollSelector.
This change is not really required in Python 3.4, since select.epoll.poll() now
rounds also correctly the timeout. But Guido van Rossum prefers to have exactly
the same selectors.py file in CPython and Tulip projects: "it's not harmful".
Victor Stinner [Tue, 21 Jan 2014 19:52:17 +0000 (20:52 +0100)]
Issue #20024: Py_BuildValue() now saves/restores the current exception before
building an item if the build of a previous item failed.
Zachary Ware [Tue, 21 Jan 2014 19:50:13 +0000 (13:50 -0600)]
Issue #20301: Merge with 3.3
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.
Georg Brandl [Tue, 21 Jan 2014 18:20:58 +0000 (19:20 +0100)]
merge with 3.3
Georg Brandl [Tue, 21 Jan 2014 18:20:31 +0000 (19:20 +0100)]
fix deprecated-removed directive with sphinx 1.2
Victor Stinner [Tue, 21 Jan 2014 16:49:41 +0000 (17:49 +0100)]
selectors: add a comment to explain why and how poll timeout is rounded
Terry Jan Reedy [Tue, 21 Jan 2014 08:10:01 +0000 (03:10 -0500)]
Issue #16655: Explain why Idle's test_calltips has 'fragile' tests of builtins.
Pending Clinic/inspect changes will probably require change to this file.
Terry Jan Reedy [Tue, 21 Jan 2014 08:07:51 +0000 (03:07 -0500)]
Issue #16655: Explain why Idle's test_calltips has 'fragile' tests of builtins.
Terry Jan Reedy [Tue, 21 Jan 2014 05:26:49 +0000 (00:26 -0500)]
Merge with 3.3
Terry Jan Reedy [Tue, 21 Jan 2014 05:26:21 +0000 (00:26 -0500)]
Issue #20122: Idlelib: Move tests in CallTips.py to test_calltips.py.
Terry Jan Reedy [Tue, 21 Jan 2014 05:02:17 +0000 (00:02 -0500)]
Merge with 3.3
Terry Jan Reedy [Tue, 21 Jan 2014 05:01:51 +0000 (00:01 -0500)]
Issue #20222: file is no longer a builtin in 3.x.
Antoine Pitrou [Tue, 21 Jan 2014 01:39:54 +0000 (02:39 +0100)]
Fix the description of pickle protocol numbers
Victor Stinner [Tue, 21 Jan 2014 01:38:33 +0000 (02:38 +0100)]
(Merge 3.3) Issue #20311: Try to fix the unit test, use time.monotonic()
instead of time.perf_counter()
Victor Stinner [Tue, 21 Jan 2014 01:37:41 +0000 (02:37 +0100)]
Issue #20311: Try to fix the unit test, use time.monotonic() instead of
time.perf_counter()
Move also the unit test at the end.
Victor Stinner [Tue, 21 Jan 2014 00:48:28 +0000 (01:48 +0100)]
Issue #20311: selector.PollSelector.select() 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.
Move also a test in test_epoll which was moved by my previous merge.
Victor Stinner [Tue, 21 Jan 2014 00:42:11 +0000 (01:42 +0100)]
(Merge 3.3) 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.
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.
Victor Stinner [Mon, 20 Jan 2014 22:56:40 +0000 (23:56 +0100)]
Close #20275: Optimize BaseEventLoop._run_once()
Logger.log() is "slow", logger.isEnabledFor() is faster and the logger is
disabled in most cases. A microbenchmark executing 100,000 dummy tasks is 22%
faster with this change.
Serhiy Storchaka [Mon, 20 Jan 2014 19:59:33 +0000 (21:59 +0200)]
Issue #20262: Warnings are raised now when duplicate names are added in the
ZIP file or too long ZIP file comment is truncated.
Serhiy Storchaka [Mon, 20 Jan 2014 19:57:40 +0000 (21:57 +0200)]
Issue #20262: Warnings are raised now when duplicate names are added in the
ZIP file or too long ZIP file comment is truncated.
Serhiy Storchaka [Mon, 20 Jan 2014 19:35:06 +0000 (21:35 +0200)]
Issue #20315: Removed support for backward compatibility with early 2.x versions.
Removed backward compatibility alias curses.window.nooutrefresh which should
be removed in 2.3.
Serhiy Storchaka [Mon, 20 Jan 2014 19:29:31 +0000 (21:29 +0200)]
Issue #20315: Removed support for backward compatibility with early 2.x versions.
Eli Bendersky [Mon, 20 Jan 2014 16:13:31 +0000 (08:13 -0800)]
Fix grammar and add markup
Eli Bendersky [Mon, 20 Jan 2014 15:51:31 +0000 (07:51 -0800)]
Formatting & rst link markup fixes
Eli Bendersky [Mon, 20 Jan 2014 15:02:22 +0000 (07:02 -0800)]
Clarify what the loop arguments means for functions listed in 18.5.2.5
Eli Bendersky [Mon, 20 Jan 2014 14:59:23 +0000 (06:59 -0800)]
Explain the 'result' argument in asyncio.sleep
Stefan Krah [Mon, 20 Jan 2014 14:35:38 +0000 (15:35 +0100)]
Merge from 3.3.
Stefan Krah [Mon, 20 Jan 2014 14:31:08 +0000 (15:31 +0100)]
Issue #19036: Including locale.h should not depend on HAVE_LANGINFO_H.
Gregory P. Smith [Mon, 20 Jan 2014 09:11:18 +0000 (01:11 -0800)]
Fixes Issue #20165: The unittest module no longer considers tests marked with
@expectedFailure successful if they pass.
Gregory P. Smith [Mon, 20 Jan 2014 09:10:33 +0000 (01:10 -0800)]
Fix the unittest to run properly when the working directory has
additional bits set (such as the setgid or sticky bits).
Benjamin Peterson [Mon, 20 Jan 2014 05:12:24 +0000 (00:12 -0500)]
merge 3.3 (#6627)
Benjamin Peterson [Mon, 20 Jan 2014 05:10:23 +0000 (00:10 -0500)]
put notes in a ..note section
Benjamin Peterson [Mon, 20 Jan 2014 05:09:53 +0000 (00:09 -0500)]
document that a new Python thread context is created in ctypes callbacks (closes #6627)
Patch by Nikolaus Rath.
Larry Hastings [Sun, 19 Jan 2014 11:01:23 +0000 (03:01 -0800)]
Improve fix for issue #20300.
Larry Hastings [Sun, 19 Jan 2014 10:27:34 +0000 (02:27 -0800)]
Issue #20300: Fix exception when setting conversion class member "default"
to None.
Larry Hastings [Sun, 19 Jan 2014 07:50:21 +0000 (23:50 -0800)]
Issue #20294: Argument Clinic now supports argument parsing for __new__ and
__init__ functions.
Larry Hastings [Sun, 19 Jan 2014 05:54:15 +0000 (21:54 -0800)]
Issue #20299: Argument Clinic custom converters may now change the default
value of c_default and py_default with a class member.
Benjamin Peterson [Sun, 19 Jan 2014 03:57:05 +0000 (22:57 -0500)]
merge 3.3 (#17811)
Benjamin Peterson [Sun, 19 Jan 2014 03:54:59 +0000 (22:54 -0500)]
improve description of buffers argument for readv/writev (closes #17811)
Patch by Nikolaus Rath.
Benjamin Peterson [Sun, 19 Jan 2014 03:32:05 +0000 (22:32 -0500)]
merge 3.3 (#18574)
Benjamin Peterson [Sun, 19 Jan 2014 03:31:27 +0000 (22:31 -0500)]
correct news entry for #18574
Benjamin Peterson [Sun, 19 Jan 2014 02:51:11 +0000 (21:51 -0500)]
merge 3.3 (#18574)
Benjamin Peterson [Sun, 19 Jan 2014 02:50:35 +0000 (21:50 -0500)]
add Nikolaus Rath to ACKS
Benjamin Peterson [Sun, 19 Jan 2014 02:50:18 +0000 (21:50 -0500)]
fix handling of 100-continue status code (closes #18574)
Serhiy Storchaka [Sat, 18 Jan 2014 22:38:36 +0000 (00:38 +0200)]
Use correct C type in byte_converter.
Stefan Krah [Sat, 18 Jan 2014 22:18:39 +0000 (23:18 +0100)]
Fix test failures (--without-doc-strings).
R David Murray [Sat, 18 Jan 2014 20:02:00 +0000 (15:02 -0500)]
Merge #19855: restore use of LC_ALL, not LC_MESSAGES
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.
Serhiy Storchaka [Sat, 18 Jan 2014 16:31:41 +0000 (18:31 +0200)]
Issue #20270: urllib.urlparse now supports empty ports.
Serhiy Storchaka [Sat, 18 Jan 2014 16:30:33 +0000 (18:30 +0200)]
Issue #20270: urllib.urlparse now supports empty ports.
Serhiy Storchaka [Sat, 18 Jan 2014 14:28:37 +0000 (16:28 +0200)]
Issue #20244: Fixed possible file leaks when unexpected error raised in
tarfile open functions.
Serhiy Storchaka [Sat, 18 Jan 2014 14:28:08 +0000 (16:28 +0200)]
Issue #20244: Fixed possible file leaks when unexpected error raised in
tarfile open functions.
Serhiy Storchaka [Sat, 18 Jan 2014 14:14:49 +0000 (16:14 +0200)]
Issue #20243: TarFile no longer raise ReadError when opened in write mode.
Serhiy Storchaka [Sat, 18 Jan 2014 14:14:10 +0000 (16:14 +0200)]
Issue #20243: TarFile no longer raise ReadError when opened in write mode.
Serhiy Storchaka [Sat, 18 Jan 2014 13:53:39 +0000 (15:53 +0200)]
Issue #20238: TarFile opened with external fileobj and "w:gz" mode didn't
write complete output on close.
Serhiy Storchaka [Sat, 18 Jan 2014 13:53:05 +0000 (15:53 +0200)]
Issue #20238: TarFile opened with external fileobj and "w:gz" mode didn't
write complete output on close.
Serhiy Storchaka [Sat, 18 Jan 2014 13:37:21 +0000 (15:37 +0200)]
Issue #20245: The open functions in the tarfile module now correctly handle empty mode.
Serhiy Storchaka [Sat, 18 Jan 2014 13:35:37 +0000 (15:35 +0200)]
Issue #20245: The open functions in the tarfile module now correctly handle empty mode.
Larry Hastings [Sat, 18 Jan 2014 09:08:50 +0000 (01:08 -0800)]
Doc improvements for Clinic howto "Goals" section.
Larry Hastings [Sat, 18 Jan 2014 08:26:16 +0000 (00:26 -0800)]
Issue #20292: Small bug fix for Argument Clinic supporting format units
for strings with explicit encodings.
Benjamin Peterson [Sat, 18 Jan 2014 05:49:30 +0000 (00:49 -0500)]
merge 3.3
Benjamin Peterson [Sat, 18 Jan 2014 05:49:04 +0000 (00:49 -0500)]
rm extra whitespace
Benjamin Peterson [Sat, 18 Jan 2014 05:47:06 +0000 (00:47 -0500)]
merge 3.3
Benjamin Peterson [Sat, 18 Jan 2014 05:47:00 +0000 (00:47 -0500)]
link to builtin open not io.open
Benjamin Peterson [Sat, 18 Jan 2014 05:46:49 +0000 (00:46 -0500)]
merge 3.3 (#17814)
Benjamin Peterson [Sat, 18 Jan 2014 05:45:56 +0000 (00:45 -0500)]
describe type of Popen streams (closes #17814)
Patch more or less by Nikolaus Rath.
Larry Hastings [Sat, 18 Jan 2014 01:47:17 +0000 (17:47 -0800)]
Issue #20287: Argument Clinic's output is now configurable, allowing
delaying its output or even redirecting it to a separate file.
Zachary Ware [Fri, 17 Jan 2014 21:24:18 +0000 (15:24 -0600)]
Issue #20265: Merge with 3.3
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)
Gregory P. Smith [Fri, 17 Jan 2014 20:09:05 +0000 (12:09 -0800)]
avoid a compiler warning about assigning const char * to char *.
Gregory P. Smith [Fri, 17 Jan 2014 20:08:49 +0000 (12:08 -0800)]
avoid a compiler warning about assigning const char * to char *.
Gregory P. Smith [Fri, 17 Jan 2014 20:01:40 +0000 (12:01 -0800)]
sort os.listxattr results before comparing it to avoid depending on the ordering of the directory information in the underlying filesystem.
Gregory P. Smith [Fri, 17 Jan 2014 20:01:22 +0000 (12:01 -0800)]
sort os.listxattr results before comparing it to avoid depending on the
ordering of the directory information in the underlying filesystem.
Vinay Sajip [Fri, 17 Jan 2014 18:36:41 +0000 (18:36 +0000)]
Merged documentation update from 3.3.
Vinay Sajip [Fri, 17 Jan 2014 18:36:02 +0000 (18:36 +0000)]
Added example to recently added cookbook entry.
Brett Cannon [Fri, 17 Jan 2014 17:06:28 +0000 (12:06 -0500)]
Issues #20194,20195: Add missing :deprecated: markers to some module
docs.
Brett Cannon [Fri, 17 Jan 2014 16:45:01 +0000 (11:45 -0500)]
Issue #20208: Clarify some things in the Python porting HOWTO.
Thanks to Rodrigo Bernardo Pimentel, Ondřej Čertík, and Dmitry
Shachnev for the feedback leading to the changes.
Brett Cannon [Fri, 17 Jan 2014 16:03:19 +0000 (11:03 -0500)]
Issue #18394: Document that cgi.FieldStorage now cleans up after its
'file' attribute properly in Python 3.4.
Thanks to Marcel Hellkamp for pointing out the oversight.
Zachary Ware [Fri, 17 Jan 2014 15:31:19 +0000 (09:31 -0600)]
Merge typo/grammar fixes from 3.3.
Zachary Ware [Fri, 17 Jan 2014 15:30:03 +0000 (09:30 -0600)]
Fix some typos/grammar in current sections of NEWS.
Zachary Ware [Fri, 17 Jan 2014 15:00:36 +0000 (09:00 -0600)]
Issue #20266: Merge with 3.3
Zachary Ware [Fri, 17 Jan 2014 14:59:44 +0000 (08:59 -0600)]
Issue #20266: Update parts of the Windows FAQ