Commit graph

91246 commits

Author SHA1 Message Date
Vinay Sajip 9cdfd18fc6 Closes #25685: Made SocketHandler emission more efficient. 2015-12-26 12:48:44 +00:00
Serhiy Storchaka f81be8aa3f Issue #22995: Instances of extension types with a state that aren't
subclasses of list or dict and haven't implemented any pickle-related
methods (__reduce__, __reduce_ex__, __getnewargs__, __getnewargs_ex__,
or __getstate__), can no longer be pickled.  Including memoryview.
2015-12-25 21:04:29 +02:00
Serhiy Storchaka bc4ded9537 Issue #24103: Fixed possible use after free in ElementTree.XMLPullParser. 2015-12-24 11:51:57 +02:00
Serhiy Storchaka 5a57ade58e Issue #20440: Massive replacing unsafe attribute setting code with special
macro Py_SETREF.
2015-12-24 10:35:59 +02:00
R David Murray a198645fa0 #1753718: clarify RFC compliance and bytes/string argument types.
Patch includes contributions by Isobel Hooper, incorporating suggestions from
Paul Winkler.  Reviewed by Martin Panter.

In addition to accepting the corrections for the RFC compliance wording, I
went through and corrected all the argument and return types, and made the
pattern of how the arguments and return types are documented consistent.
So, this patch also addresses #20782, though I had forgotten about that issue
and its patch.
2015-12-23 21:17:17 -05:00
Serhiy Storchaka a17ca19d34 Issue #25860: Fixed test failure caused by inconsistency of os.walk() and
os.fwalk() parameter names.
2015-12-23 00:37:34 +02:00
Serhiy Storchaka 0bddc9eb15 Issue #25860: os.fwalk() no longer skips remaining directories when error occurs.
Original patch by Samson Lee.
2015-12-23 00:08:24 +02:00
Serhiy Storchaka 0ce7a3a34c Issue #25914: Fixed and simplified OrderedDict.__sizeof__. 2015-12-22 08:16:18 +02:00
Zachary Ware 5af856404a Issue #25827: Add support for ICC to configure 2015-12-21 12:09:17 -06:00
Serhiy Storchaka 66c08d90f6 Issue #25902: Fixed various refcount issues in ElementTree iteration. 2015-12-21 11:09:48 +02:00
Larry Hastings 0744641668 Merge 3.4.4 from 3.4 to 3.5. 2015-12-20 22:46:30 -08:00
Larry Hastings 52d6c2c4c0 Merge. 2015-12-20 22:44:06 -08:00
Larry Hastings c4e70ffba9 Post-release touchups for Python 3.4.4 final. 2015-12-20 22:42:47 -08:00
Serhiy Storchaka 5aac3ed799 Issue #25766: Special method __bytes__() now works in str subclasses. 2015-12-20 16:36:34 +02:00
Serhiy Storchaka 5185597a69 Fixed sizeof tests for dict and type (they were passed by accident).
Added tests for dict views iterators.
2015-12-20 11:39:14 +02:00
Serhiy Storchaka aaf69aca45 Don't create non-needed file. 2015-12-20 09:37:52 +02:00
Larry Hastings 1014d1c4b8 Added tag v3.4.4 for changeset 737efcadf5a6 2015-12-19 19:31:20 -08:00
Larry Hastings fa71932860 Release bump for Python 3.4.4 final. 2015-12-19 19:31:10 -08:00
Larry Hastings 5caf39d827 Rebuild pydoc topics for Python 3.4.4 final. 2015-12-19 19:28:52 -08:00
Serhiy Storchaka 9c297e43bf Use correct PyGC_Head size in tests for issue #25421. 2015-12-19 22:49:29 +02:00
Serhiy Storchaka 5c4064e8bd Issue #25421: __sizeof__ methods of builtin types now use dynamic basic size.
This allows sys.getsize() to work correctly with their subclasses with
__slots__ defined.
2015-12-19 20:05:25 +02:00
Terry Jan Reedy efd7b34d7c Merge with 3.4 2015-12-18 15:47:13 -05:00
Terry Jan Reedy 5aeadb3fba Issue #25905: Revert unwanted conversion of ' to ’ RIGHT SINGLE QUOTATION MARK. 2015-12-18 15:46:57 -05:00
Serhiy Storchaka d1f20d1cf3 Fixed markup and spaces in Misc/NEWS. 2015-12-18 19:36:24 +02:00
Serhiy Storchaka 581e56acc9 Issue #25899: Fixed typo in .bzrignore. 2015-12-18 13:12:33 +02:00
Serhiy Storchaka 225821c653 Issue #25899: Converted non-ASCII characters in docstrings and manpage
to ASCII replacements.  Original patch by Chris Angelico.
2015-12-18 13:05:04 +02:00
Serhiy Storchaka 29e2aa696d Test UTF-32LE before UTF-16LE since UTF-16LE BOM is a prefix of UTF-32LE BOM. 2015-12-18 10:23:09 +02:00
Serhiy Storchaka e0cb9da9d6 Issue #25893: Removed unused variable reqdSize.
Added test for return code for the last RegQueryValueExW.
2015-12-18 09:54:19 +02:00
Yury Selivanov 3dc74bf703 docs: Document ASYNC/AWAIT tokens (issue #25580)
Initial patch by SilentGhost
2015-12-17 18:26:41 -05:00
Martin Panter b84ef715b8 Merge 3.4 into 3.5 2015-12-17 10:34:44 +00:00
Martin Panter 6f9b010242 Fix a couple of typos in code comments 2015-12-17 10:18:28 +00:00
Yury Selivanov 9920e293c3 Merge 3.4 2015-12-16 21:31:04 -05:00
Yury Selivanov cba0053bef docs/asyncio: Twek sections names per Nick Coghlan suggestion 2015-12-16 21:30:52 -05:00
Yury Selivanov c4e27e277c Merge 3.4 2015-12-16 20:41:25 -05:00
Yury Selivanov ea4ce1c776 asyncio/tests: Fix a ResourceWarning due to unclosed loop 2015-12-16 20:41:11 -05:00
Yury Selivanov 152c408ed6 Merge 3.4 2015-12-16 20:23:37 -05:00
Yury Selivanov 3cd863c86e asyncio/tests: Fix ResourceWarnings related to unclosed transports 2015-12-16 20:23:26 -05:00
Yury Selivanov bcf8afd015 Merge 3.4 2015-12-16 19:51:19 -05:00
Yury Selivanov 5f68ca66bf asyncio/tests: Fix some ResourceWarnings 2015-12-16 19:51:09 -05:00
Yury Selivanov e277a3dc51 Merge 3.4 2015-12-16 19:40:11 -05:00
Yury Selivanov aa78adc589 asyncio/tests: Fix deprecation warning 2015-12-16 19:40:03 -05:00
Yury Selivanov a3f82bad16 Merge 3.4 2015-12-16 19:35:39 -05:00
Yury Selivanov ec45226eeb Normalize whitespace 2015-12-16 19:35:30 -05:00
Yury Selivanov 631546cf92 Merge 3.4 2015-12-16 19:31:40 -05:00
Yury Selivanov d5c2a62100 asyncio: Skip getaddrinfo if host is already resolved.
getaddrinfo takes an exclusive lock on some platforms, causing clients to queue
up waiting for the lock if many names are being resolved concurrently. Users
may want to handle name resolution in their own code, for the sake of caching,
using an alternate resolver, or to measure DNS duration separately from
connection duration. Skip getaddrinfo if the "host" passed into
create_connection is already resolved.

See https://github.com/python/asyncio/pull/302 for details.

Patch by A. Jesse Jiryu Davis.
2015-12-16 19:31:17 -05:00
Martin Panter a7f9933efa Issue #23788: Merge redundant test_bad_address() into test_urllibnet
In Python 2, these were duplicated; one for urllib.urlopen() and one for
urllib2.urlopen(). The test_urllibnet version has a better precondition to
avoid false failures with bad DNS, and the test_urllib2_localnet version had
a more up-to-date comment and domain name.
2015-12-16 04:36:20 +00:00
Yury Selivanov e319ab01ce docs/asyncio: Update ensure_future & run_coroutine_threadsafe docs 2015-12-15 00:45:24 -05:00
Yury Selivanov 4a18b35dbd docs/whatsnew/3.5: Fix ref link 2015-12-15 00:38:28 -05:00
Yury Selivanov bf077ee043 whatsnew/3.5: Mention new asyncio APIs in 3.5.1 2015-12-15 00:30:18 -05:00
Gregory P. Smith f1b3134d28 Issue #11072: change the incorrect "deprecation" of ftplib dir() and nlst()
APIs into a note that mlsd() is a nicer API if the server supports
it.  They aren't deprecated, they are all different server commands.
Not all servers support all commands.
2015-12-13 22:10:28 -08:00