Commit graph

86790 commits

Author SHA1 Message Date
Yury Selivanov
aa78adc589 asyncio/tests: Fix deprecation warning 2015-12-16 19:40:03 -05:00
Yury Selivanov
ec45226eeb Normalize whitespace 2015-12-16 19:35:30 -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
Gregory P. Smith
8c084eb77d merge head 2015-12-13 20:06:35 -08:00
Gregory P. Smith
0212c4dc6b Re-fix issue #19284: Don't generate the no-op -R command line
parameter to "enable" the always on sys.flags.hash_randomization
in _args_from_interpreter_flags() used by multiprocessing and
some unittests.  This simplifies the code.
2015-12-13 20:05:55 -08:00
Gregory P. Smith
220ba72c20 Fix test_cmd_line not to fail if PYTHONHASHSEED is set to a fixed seed
due to test_hash_randomization expecting a different seed per process.
2015-12-13 20:01:44 -08:00
Gregory P. Smith
4cb6d37d1d assert_python_ok docstring typo fix. 2015-12-13 20:00:24 -08:00
R David Murray
2b4f47ee35 #25495: Clarify b2a_base64 documentation vis 57 bytes. 2015-12-13 18:04:27 -05:00
Vinay Sajip
abeb6479bd Fixes #25844: Corrected =/== typo potentially leading to crash in launcher. 2015-12-13 09:41:29 +00:00
Yury Selivanov
0ac3a0cd79 asyncio: Make Tasks check if Futures are attached to the same event loop
See https://github.com/python/asyncio/pull/303 for details
2015-12-11 11:33:59 -05:00
Yury Selivanov
dddc781998 asyncio: Sync with github 2015-12-11 11:32:59 -05:00
doko@ubuntu.com
5e58600c42 Remove x permissions from Lib/test/test_script_helper.py 2015-12-07 12:19:49 +01:00
Larry Hastings
f9c88ec3c7 Merge. 2015-12-06 21:58:18 -08:00
Larry Hastings
13cf4904b2 Post-release fixups for Python 3.4.4rc1. 2015-12-06 21:54:29 -08:00
Serhiy Storchaka
7efaf95934 Issue25814: Propagate all errors from custom XML parser handlers
in ElementTree.iterparse().
2015-12-06 23:51:44 +02:00
Larry Hastings
00a86354c9 Added tag v3.4.4rc1 for changeset 04f3f725896c 2015-12-06 05:53:49 -08:00
Larry Hastings
e739601a78 Version bump for 3.4.4rc1. 2015-12-06 05:53:35 -08:00
Larry Hastings
8986c442cd Rebuilt pydoc topics for 3.4.4rc1. 2015-12-06 05:51:56 -08:00
Ned Deily
6364094f49 Issue #25798: Update OS X 10.5+ 32-bit-only installer to build
and link with OpenSSL 1.0.2e.
2015-12-05 23:51:23 -05:00
Martin Panter
f7fdbdab5b Issue #25764: Skip the test on OS X
The OS X buildbots were failing at the second setrlimit() call with EPERM, as
if they were trying to raise the hard limit. The call should be keeping the
hard limit the same and raising the soft limit back to its original value, so
I don't understand the failure.
2015-12-05 09:51:52 +00:00
Benjamin Peterson
e2825e9522 merge 3.3 2015-12-05 00:27:23 -08:00
Benjamin Peterson
14b2c82855 fix reordering 2015-12-05 00:27:11 -08:00
Benjamin Peterson
68524e1984 merge 3.3 2015-12-05 00:23:11 -08:00
Benjamin Peterson
2deaea3119 merge 3.2 2015-12-05 00:21:12 -08:00
Benjamin Peterson
5e621176c4 add CVE and issue number 2015-12-05 00:17:57 -08:00
Zachary Ware
6d8a260845 Issue #25800: Fix running test_capi directly 2015-12-05 00:16:55 -06:00
R David Murray
ced699b4c7 #24903: Remove misleading error message to fix regression.
Before the argparse conversion, compileall would (sometimes) accept multiple
paths when -d was specified.  Afterward, it does not.  The corresponding check
in the original code claimed to prevent multiple *directories* from being
specified...but it didn't really work even to do that.  So this patch fixes
the regression by invoking the consenting adults rule: if you specify a
combination of arguments to compileall that produces files with inconsistent
destdirs (which you could do before), it is on you.

Patch by Jake Garver.
2015-12-04 22:54:38 -05:00
Martin Panter
afdd51343c Issue #25764: Preserve subprocess fork exception when preexec_fn used
Also fix handling of failure to release the import lock.
2015-11-30 02:21:41 +00:00
Serhiy Storchaka
c7217d7c22 Issue #6478: _strptime's regexp cache now is reset after changing timezone
with time.tzset().
2015-12-03 22:21:07 +02:00
Serhiy Storchaka
7aa690860e Issue #25709: Fixed problem with in-place string concatenation and utf-8 cache. 2015-12-03 01:02:03 +02:00
Steven D'Aprano
f02de4938e Merge heads. 2015-12-02 01:10:09 +11:00
Zachary Ware
992bfe093e Issue #25767: Link to English Wikipedia instead of French. 2015-11-30 22:56:17 -06:00
Steven D'Aprano
c0c00c38ad Fix for issue #25177 with the mean of very small and very large numbers. 2015-12-01 13:48:48 +11:00
Serhiy Storchaka
a8d83f5fc9 Removed debugging output of exception raised by __reduce__ method. 2015-12-01 00:39:25 +02:00
Serhiy Storchaka
ca28eba3d3 Fixed reference leak when read truncated pickle. 2015-12-01 00:18:23 +02:00
Serhiy Storchaka
cbbec1c53f Issue #25718: Fixed copying object with state with boolean value is false. 2015-11-30 17:20:02 +02:00
Serhiy Storchaka
7279befccb Issue #25761: Added more test cases for testing unpickling broken data.
Output raised exception at verbose level 2 (-vv).
2015-11-29 13:12:10 +02:00
Serhiy Storchaka
c472246d81 Issue #10131: Fixed deep copying of minidom documents. Based on patch
by Marian Ganisin.
2015-11-26 23:49:42 +02:00
Martin Panter
747d48cf27 Issues #22989, #21228: Document HTTP response object for urlopen()
Previous documentation was not clear if the geturl(), info() and getcode()
were valid for HTTP responses. The “msg” attribute is different to the usual
HTTPResponse.msg attribute. Based on patch by Evens Fortuné.
2015-11-26 11:01:58 +00:00
Martin Panter
92072ac8b4 Issue #25622: Rename to PythonValuesTestCase and enable for non-Windows 2015-11-26 02:36:26 +00:00
Serhiy Storchaka
097a664f57 Issue #19687: Fixed possible integer overflows in ElementTree.
Based on patch by Christian Heimes.
2015-11-25 20:12:37 +02:00
Serhiy Storchaka
d28bb624d1 Issue #24097: Fixed crash in object.__reduce__() if slot name is freed inside
__getattr__.  Original patch by Antoine Pitrou.
2015-11-25 18:33:29 +02:00
Serhiy Storchaka
33e7ea5ad6 Issue #25616: Tests for OrderedDict are extracted from test_collections
into separate file test_ordered_dict.
2015-11-25 17:09:01 +02:00
Serhiy Storchaka
1c855f4602 Issue #25697: Fixed rough alphabetical order in Misc/ACKS. 2015-11-25 16:11:29 +02:00
Serhiy Storchaka
15095800a3 Issue #24731: Fixed crash on converting objects with special methods
__bytes__, __trunc__, and __float__ returning instances of subclasses of
bytes, int, and float to subclasses of bytes, int, and float correspondingly.
2015-11-25 15:47:01 +02:00
Serhiy Storchaka
a49de6be36 Issue #25725: Fixed a reference leak in pickle.loads() when unpickling
invalid data including tuple instructions.
2015-11-25 15:01:53 +02:00
Vinay Sajip
4f44d53770 Issue #25508: Clarify documentation on LogRecord args attribute. 2015-11-24 23:21:15 +00:00
Martin Panter
cda85a0d1c Issue #25576: Remove application/x-www-form-urlencoded charset advice
No charset parameter is standardized for this Content-Type value. Also
clarify that urlencode() outputs ASCII.
2015-11-24 22:33:18 +00:00
Martin Panter
ed92910852 Issue #25663: Make rlcompleter avoid duplicate global names 2015-11-23 23:50:26 +00:00
Serhiy Storchaka
bf7b9ede1a Issue #25706: Fixed markup in the documentation. 2015-11-23 16:43:05 +02:00