Victor Stinner [Sun, 9 Feb 2014 00:35:24 +0000 (01:35 +0100)]
asyncio doc: fix gather() doc
Victor Stinner [Sun, 9 Feb 2014 00:25:52 +0000 (01:25 +0100)]
asyncio tests: Remove scories of resolution/granularity
Nick Coghlan [Sun, 9 Feb 2014 00:10:24 +0000 (10:10 +1000)]
Tweaks to What's New and some referenced docs
Nick Coghlan [Sat, 8 Feb 2014 23:18:26 +0000 (09:18 +1000)]
Close #20563: Declare ipaddress API stable
R David Murray [Sat, 8 Feb 2014 22:56:17 +0000 (17:56 -0500)]
Merge: #14983: always add a line end after a MIME boundary marker.
R David Murray [Sat, 8 Feb 2014 22:54:56 +0000 (17:54 -0500)]
#14983: always add a line end after a MIME boundary marker.
This is more RFC compliant (see issue) and fixes a problem with
signature verifiers rejecting the part when signed. There is some
amount of backward compatibility concern here since it changes
the output, but the RFC issue coupled with fixing the problem
with signature verifiers seems worth the small risk of breaking
code that depends on the current incorrect output.
Senthil Kumaran [Sat, 8 Feb 2014 22:28:44 +0000 (14:28 -0800)]
merge from 3.3
Include the mention of ResourceWarning being displayed by default by the test runner.
Addressing #issue 20529
Senthil Kumaran [Sat, 8 Feb 2014 22:28:03 +0000 (14:28 -0800)]
Include the mention of ResourceWarning being displayed by default by the test runner.
Addressing #issue 20529
Victor Stinner [Sat, 8 Feb 2014 22:22:58 +0000 (23:22 +0100)]
asyncio doc: document missing event loop methods
Antoine Pitrou [Sat, 8 Feb 2014 22:03:56 +0000 (23:03 +0100)]
Issue #20540: Fix a performance regression (vs. Python 3.2) when layering a multiprocessing Connection over a TCP socket.
For small payloads, Nagle's algorithm would introduce idle delays before the entire transmission of a message.
Charles-François Natali [Sat, 8 Feb 2014 21:54:11 +0000 (22:54 +0100)]
Issue #20065: socketmodule: Fix build error when AF_CAN is defined without the
proper CAN headers.
Victor Stinner [Sat, 8 Feb 2014 21:50:07 +0000 (22:50 +0100)]
asyncio doc: sort methods
Antoine Pitrou [Sat, 8 Feb 2014 22:05:52 +0000 (23:05 +0100)]
Issue #20540: Fix a performance regression (vs. Python 3.2) when layering a multiprocessing Connection over a TCP socket.
For small payloads, Nagle's algorithm would introduce idle delays before the entire transmission of a message.
Charles-François Natali [Sat, 8 Feb 2014 21:55:13 +0000 (22:55 +0100)]
Merge.
Charles-François Natali [Sat, 8 Feb 2014 21:54:48 +0000 (22:54 +0100)]
Issue #20065: socketmodule: Fix build error when AF_CAN is defined without the
proper CAN headers.
Ethan Furman [Sat, 8 Feb 2014 19:36:27 +0000 (11:36 -0800)]
Close issue20534: all pickle protocols now supported.
R David Murray [Sat, 8 Feb 2014 18:13:01 +0000 (13:13 -0500)]
Merge: #16983: Apply postel's law to encoded words inside quoted strings.
R David Murray [Sat, 8 Feb 2014 18:12:00 +0000 (13:12 -0500)]
#16983: Apply postel's law to encoded words inside quoted strings.
This applies only to the new parser. The old parser decodes encoded words
inside quoted strings already, although it gets the whitespace wrong
when it does so.
This version of the patch only handles the most common case (a single encoded
word surrounded by quotes), but I haven't seen any other variations of this in
the wild yet, so its good enough for now.
R David Murray [Sat, 8 Feb 2014 16:51:18 +0000 (11:51 -0500)]
Merge #19772: Do not mutate message when downcoding to 7bit.
R David Murray [Sat, 8 Feb 2014 16:48:20 +0000 (11:48 -0500)]
#19772: Do not mutate message when downcoding to 7bit.
This is a bit of an ugly hack because of the way generator pieces together the
output message. The deepcopys aren't too expensive, though, because we know it
is only called on messages that are not multiparts, and the payload (the thing
that could be large) is an immutable object.
Test and preliminary work on patch by Vajrasky Kok.
Serhiy Storchaka [Sat, 8 Feb 2014 14:39:51 +0000 (16:39 +0200)]
Issue #20553. Use specific asserts in ipaddress tests.
Serhiy Storchaka [Sat, 8 Feb 2014 14:38:35 +0000 (16:38 +0200)]
Issue #20553. Use specific asserts in ipaddress tests.
Terry Jan Reedy [Sat, 8 Feb 2014 14:05:20 +0000 (09:05 -0500)]
Issue #20406: Use Python application icons for Idle window title bars.
Patch mostly by Serhiy Storchaka.
Terry Jan Reedy [Sat, 8 Feb 2014 14:02:26 +0000 (09:02 -0500)]
Issue #20406: Use Python application icons for Idle window title bars.
Patch mostly by Serhiy Storchaka.
Nick Coghlan [Sat, 8 Feb 2014 13:55:14 +0000 (23:55 +1000)]
Close #20536: correctly handle Decimal exponents in statistics
Nick Coghlan [Sat, 8 Feb 2014 13:40:23 +0000 (23:40 +1000)]
Merge #18805 NEWS fix from 3.3
Nick Coghlan [Sat, 8 Feb 2014 13:39:54 +0000 (23:39 +1000)]
Fix #18805 NEWS entry
Nick Coghlan [Sat, 8 Feb 2014 13:20:58 +0000 (23:20 +1000)]
Merge fix for #18805 from 3.3
Nick Coghlan [Sat, 8 Feb 2014 13:17:36 +0000 (23:17 +1000)]
Issue #18805: better netmask validation in ipaddress
Serhiy Storchaka [Sat, 8 Feb 2014 13:06:43 +0000 (15:06 +0200)]
Issue #20549: Use specific asserts in mailbox, smtplib and poplib tests.
Serhiy Storchaka [Sat, 8 Feb 2014 13:06:08 +0000 (15:06 +0200)]
Issue #20549: Use specific asserts in mailbox, smtplib and poplib tests.
Serhiy Storchaka [Sat, 8 Feb 2014 12:51:10 +0000 (14:51 +0200)]
Issue #20555: Use specific asserts in urllib, httplib, ftplib, cgi, wsgiref tests.
Serhiy Storchaka [Sat, 8 Feb 2014 12:50:08 +0000 (14:50 +0200)]
Issue #20555: Use specific asserts in urllib, httplib, ftplib, cgi, wsgiref tests.
Serhiy Storchaka [Sat, 8 Feb 2014 12:29:36 +0000 (14:29 +0200)]
Issue #20546: Use specific asserts in int tests.
Serhiy Storchaka [Sat, 8 Feb 2014 12:28:33 +0000 (14:28 +0200)]
Issue #20546: Use specific asserts in int tests.
Serhiy Storchaka [Sat, 8 Feb 2014 12:06:33 +0000 (14:06 +0200)]
Issue #20538: UTF-7 incremental decoder produced inconsistant string when
input was truncated in BASE64 section.
Serhiy Storchaka [Sat, 8 Feb 2014 12:01:29 +0000 (14:01 +0200)]
Issue #20538: UTF-7 incremental decoder produced inconsistant string when
input was truncated in BASE64 section.
Nick Coghlan [Sat, 8 Feb 2014 09:58:04 +0000 (19:58 +1000)]
Close #20481: Disallow mixed type input in statistics
The most appropriate coercion rules are not yet clear, so simply
disallowing mixed type input for 3.4.
(Committed on Steven's behalf)
Terry Jan Reedy [Sat, 8 Feb 2014 09:47:29 +0000 (04:47 -0500)]
Issue #20167: Suppress 3.4 specific 'Exception ignored' messages.
Original patch by Tal Einat.
Nick Coghlan [Sat, 8 Feb 2014 09:44:16 +0000 (19:44 +1000)]
Issue #20478: avoid special casing Counter in statistics
Passing Counter objects to the Counter constructor is
special cased, going through iter() firsts ensures they
are handled the same way as any other iterable.
(Committing on Steven's behalf as I don't believe his
SSH key is registered yet)
Guido van Rossum [Sat, 8 Feb 2014 00:11:17 +0000 (16:11 -0800)]
More asyncio news.
Victor Stinner [Fri, 7 Feb 2014 22:34:58 +0000 (23:34 +0100)]
Issue #20505: Remove resolution and _granularity from selectors and asyncio
* Remove selectors.BaseSelector.resolution attribute
* Remove asyncio.BaseEventLoop._granularity attribute
R David Murray [Fri, 7 Feb 2014 20:04:26 +0000 (15:04 -0500)]
Merge: #17369: Improve handling of broken RFC2231 values in get_filename.
R David Murray [Fri, 7 Feb 2014 20:02:19 +0000 (15:02 -0500)]
#17369: Improve handling of broken RFC2231 values in get_filename.
This fixes a regression relative to python2.
R David Murray [Fri, 7 Feb 2014 18:48:46 +0000 (13:48 -0500)]
Null merge of commit accidentally made to default branch first.
R David Murray [Fri, 7 Feb 2014 18:47:40 +0000 (13:47 -0500)]
#20013: don't raise socket error when selected mailbox deleted.
I'm checking this in without a test because not much of this code
is tested and I don't have time to work up the necessary extensions
to the existing test framework.
The patch itself was tested by the person who reported the bug.
R David Murray [Fri, 7 Feb 2014 18:44:57 +0000 (13:44 -0500)]
#20013: don't raise socket error when selected mailbox deleted.
I'm checking this in without a test because not much of this code
is tested and I don't have time to work up the necessary extensions
to the existing test framework.
The patch itself was tested by the person who reported the bug.
R David Murray [Fri, 7 Feb 2014 18:04:18 +0000 (13:04 -0500)]
Merge: #19063: the unicode-in-set_payload problem isn't getting fixed in 3.4.
R David Murray [Fri, 7 Feb 2014 18:03:08 +0000 (13:03 -0500)]
#19063: the unicode-in-set_payload problem isn't getting fixed in 3.4.
R David Murray [Fri, 7 Feb 2014 17:46:17 +0000 (12:46 -0500)]
#20531: Apply the 3.3 version of the #19063 fix.
So passing unicode to set_payload works again (but still doesn't
do what you want when the message is serialized).
R David Murray [Fri, 7 Feb 2014 17:40:37 +0000 (12:40 -0500)]
#20531: Revert
e20f98a8ed71, the 3.4 version of the #19063 fix.
Victor Stinner [Fri, 7 Feb 2014 18:03:05 +0000 (19:03 +0100)]
asyncio doc: mention that asyncio is not thread-safe
Victor Stinner [Fri, 7 Feb 2014 16:53:13 +0000 (17:53 +0100)]
Issue #20505: add debug info
R David Murray [Fri, 7 Feb 2014 15:55:17 +0000 (10:55 -0500)]
#20477: add examples of using the new contentmanager API.
R David Murray [Fri, 7 Feb 2014 15:44:16 +0000 (10:44 -0500)]
#20476: use EmailMessage as factory if non-compat32 policy is used.
In 3.5 I will fix this right by adding a message_factory attribute
to the policy.
Nick Coghlan [Fri, 7 Feb 2014 13:46:38 +0000 (23:46 +1000)]
Issue #20053: Mark as an expected failure for 3.4
Nick Coghlan [Fri, 7 Feb 2014 13:34:41 +0000 (23:34 +1000)]
Issue 20542: Temporarily skip failing test
Nick Coghlan [Fri, 7 Feb 2014 12:28:18 +0000 (22:28 +1000)]
Issue #20053: Actually test relevant assumption
Serhiy Storchaka [Fri, 7 Feb 2014 08:10:55 +0000 (10:10 +0200)]
Issue #20532: Tests which use _testcapi now are marked as CPython only.
Serhiy Storchaka [Fri, 7 Feb 2014 08:06:39 +0000 (10:06 +0200)]
Issue #20532: Tests which use _testcapi now are marked as CPython only.
Yury Selivanov [Fri, 7 Feb 2014 03:06:16 +0000 (22:06 -0500)]
asyncio.tasks: Fix as_completed, gather & wait to work with duplicate coroutines
Ethan Furman [Fri, 7 Feb 2014 01:28:50 +0000 (17:28 -0800)]
Close issue20534: test_enum now tests all supported pickle protocols (2 - HIGHEST_PROTOCOL, inclusive).
Serhiy Storchaka [Thu, 6 Feb 2014 22:29:03 +0000 (00:29 +0200)]
Null merge
Serhiy Storchaka [Thu, 6 Feb 2014 22:26:57 +0000 (00:26 +0200)]
Silence BytesWarning (backport
267a4d4d9d65).
Zachary Ware [Thu, 6 Feb 2014 21:46:38 +0000 (15:46 -0600)]
Issue #3158: Provide a couple of fallbacks for in case a method_descriptor
doesn't have __objclass__.
Serhiy Storchaka [Thu, 6 Feb 2014 20:52:23 +0000 (22:52 +0200)]
Issue #20363. Fixed BytesWarning triggerred by test suite.
Patch by Berker Peksag.
Serhiy Storchaka [Thu, 6 Feb 2014 20:49:45 +0000 (22:49 +0200)]
Issue #20363. Fixed BytesWarning triggerred by test suite.
Patch by Berker Peksag.
Serhiy Storchaka [Thu, 6 Feb 2014 20:44:27 +0000 (22:44 +0200)]
Catch deprecation warnings emitted when non-integers are formatted with %c, %o
and %x (introduced in issue #19995).
Serhiy Storchaka [Thu, 6 Feb 2014 19:11:33 +0000 (21:11 +0200)]
Fix empty strings to empty bytes objects.
Serhiy Storchaka [Thu, 6 Feb 2014 19:10:41 +0000 (21:10 +0200)]
Fix empty strings to empty bytes objects.
Yury Selivanov [Thu, 6 Feb 2014 17:03:53 +0000 (12:03 -0500)]
asyncio.tasks.gather: Fix docstring
Ethan Furman [Thu, 6 Feb 2014 16:13:14 +0000 (08:13 -0800)]
Close issue20412: Updated Enum docs to have referencable Enum and IntEnum classes
Brett Cannon [Thu, 6 Feb 2014 14:49:53 +0000 (09:49 -0500)]
Merge for issue #20488
Brett Cannon [Thu, 6 Feb 2014 14:46:08 +0000 (09:46 -0500)]
Issue #20488: Update docs to say importlib is *the* implementaiton of
import and not *an* implementation.
Brett Cannon [Thu, 6 Feb 2014 14:22:51 +0000 (09:22 -0500)]
Issue #6386: When executing a script that's a symlink, the directory
where the symlink resolves to is added to sys.path, not the directory
containing the symlink itself.
Thanks to Sanko Resic for an initial attempt at the patch.
Ronald Oussoren [Thu, 6 Feb 2014 10:19:18 +0000 (11:19 +0100)]
Issue #14455: fix handling of unsigned long long values for binary plist files
Values in the range of an unsigned long long, but outside of the range
of a signed long long were serialized as a negative value.
Due to a bug in PyObjC my test scripts indicated that the previous behavior
matched Apple's plist code, instead the handle large unsigned values correctly.
The change to plistlib.py is from a patch by Serhiy.
Serhiy Storchaka [Thu, 6 Feb 2014 07:27:28 +0000 (09:27 +0200)]
Issue #20520: Fixed readline test in test_codecs.
Serhiy Storchaka [Thu, 6 Feb 2014 07:26:56 +0000 (09:26 +0200)]
Issue #20520: Fixed readline test in test_codecs.
Yury Selivanov [Thu, 6 Feb 2014 05:18:48 +0000 (00:18 -0500)]
merge heads
Yury Selivanov [Thu, 6 Feb 2014 05:14:30 +0000 (00:14 -0500)]
asyncio.streams.StreamReader: Add 'at_eof()' method
Ned Deily [Thu, 6 Feb 2014 01:03:42 +0000 (17:03 -0800)]
Issue #20374: merge
Ned Deily [Thu, 6 Feb 2014 01:02:29 +0000 (17:02 -0800)]
Issue #20374: delete spurious empty line
Ned Deily [Thu, 6 Feb 2014 00:55:20 +0000 (16:55 -0800)]
Issue #20374: merge
Ned Deily [Thu, 6 Feb 2014 00:53:10 +0000 (16:53 -0800)]
Issue #20374: Avoid compiler warnings when compiling readline with libedit.
Yury Selivanov [Wed, 5 Feb 2014 23:11:13 +0000 (18:11 -0500)]
asyncio.streams: Use bytebuffer in StreamReader; Add assertion in feed_data
R David Murray [Wed, 5 Feb 2014 19:56:39 +0000 (14:56 -0500)]
#14515: clarify that TemporaryDirectory's __enter__ returns the name.
R David Murray [Wed, 5 Feb 2014 19:53:40 +0000 (14:53 -0500)]
#14515: clarify that TemporaryDirectory's __enter__ returns the name.
Serhiy Storchaka [Wed, 5 Feb 2014 18:54:43 +0000 (20:54 +0200)]
Issue #19920: TarFile.list() no longer fails when outputs a listing
containing non-encodable characters. Added tests for TarFile.list().
Based on patch by Vajrasky Kok.
Serhiy Storchaka [Wed, 5 Feb 2014 18:53:36 +0000 (20:53 +0200)]
Issue #19920: TarFile.list() no longer fails when outputs a listing
containing non-encodable characters. Added tests for TarFile.list().
Based on patch by Vajrasky Kok.
Eric V. Smith [Wed, 5 Feb 2014 15:33:14 +0000 (10:33 -0500)]
TestNamedTuple.test_pickle was only testing through protocol 2. Changed to have it automatically test through the most recent version.
Nick Coghlan [Wed, 5 Feb 2014 13:54:55 +0000 (23:54 +1000)]
Issue #20053: new test to check an assumption
Serhiy Storchaka [Wed, 5 Feb 2014 11:42:29 +0000 (13:42 +0200)]
Issue #20498: Fixed io.StringIO tests for newline='\n'. Added new tests.
Serhiy Storchaka [Wed, 5 Feb 2014 11:42:01 +0000 (13:42 +0200)]
Issue #20498: Fixed io.StringIO tests for newline='\n'. Added new tests.
Serhiy Storchaka [Wed, 5 Feb 2014 11:34:01 +0000 (13:34 +0200)]
Issue #20489: Explicitly qualified expressions for default values in methods.
Ned Deily [Wed, 5 Feb 2014 02:44:17 +0000 (18:44 -0800)]
Issue #20465: Update SQLite shipped with OS X installer to 3.8.3.
Christian Heimes [Tue, 4 Feb 2014 23:29:48 +0000 (00:29 +0100)]
Issue #20515: Fix NULL pointer dereference introduced by issue #20368
CID
1167595
Christian Heimes [Tue, 4 Feb 2014 23:29:17 +0000 (00:29 +0100)]
Issue #20515: Fix NULL pointer dereference introduced by issue #20368
CID
1167595
Guido van Rossum [Tue, 4 Feb 2014 22:27:14 +0000 (14:27 -0800)]
asyncio: Cosmetic improvement to test__run_once_logging() mock argument.
Guido van Rossum [Tue, 4 Feb 2014 21:49:34 +0000 (13:49 -0800)]
Add missing word ("thread") to sentence about call_soon_threadsafe.
Victor Stinner [Tue, 4 Feb 2014 17:18:27 +0000 (18:18 +0100)]
asyncio doc: add an example to schedule a coroutine from a different thread