Commit graph

37413 commits

Author SHA1 Message Date
Yury Selivanov
d48fb485d9 Merge 3.5 (Issue #24400) 2015-07-03 13:11:54 -04:00
Yury Selivanov
fdbeb2b4b6 Issue #24400: Resurrect inspect.isawaitable()
collections.abc.Awaitable and collections.abc.Coroutine no longer
use __instancecheck__ hook to detect generator-based coroutines.

inspect.isawaitable() can be used to detect generator-based coroutines
and to distinguish them from regular generator objects.
2015-07-03 13:11:35 -04:00
Yury Selivanov
4bbc3cc760 Merge 3.5 2015-07-03 01:16:20 -04:00
Yury Selivanov
ccc897f839 Add a rudimentary test for StopAsyncIteration in test_exceptions. 2015-07-03 01:16:04 -04:00
Yury Selivanov
bb215e2300 Merge 3.5 (Issue #19235) 2015-07-03 01:10:11 -04:00
Yury Selivanov
f488fb422a Issue #19235: Add new RecursionError exception. Patch by Georg Brandl. 2015-07-03 01:04:23 -04:00
Yury Selivanov
1c5e5a89b4 Merge 3.5 (Issue #24450) 2015-07-03 00:42:01 -04:00
Yury Selivanov
27be130ec7 Merge 3.4 (Issue #24450) 2015-07-03 00:41:40 -04:00
Yury Selivanov
09e6058838 Issue #24450: Proxy gi_yieldfrom & cr_await in asyncio.CoroWrapper 2015-07-03 00:41:16 -04:00
Yury Selivanov
b166d58b9e Merge 3.5 (Issue #24450) 2015-07-03 00:35:29 -04:00
Yury Selivanov
53e623075d Issue #24450: Proxy cr_await and gi_yieldfrom in @types.coroutine 2015-07-03 00:35:02 -04:00
Yury Selivanov
d6d0b5b1fa Merge 3.5 (Issue #24450) 2015-07-03 00:24:14 -04:00
Yury Selivanov
e13f8f3cab Issue #24450: Add gi_yieldfrom to generators; cr_await to coroutines.
Patch by Benno Leslie and Yury Selivanov.
2015-07-03 00:23:30 -04:00
Benjamin Peterson
ac2ed9d895 merge 3.5 2015-07-02 16:58:38 -05:00
Benjamin Peterson
b32b998bf7 merge 3.4 2015-07-02 16:58:31 -05:00
Benjamin Peterson
d3a2a95125 use correct __new__ method (closes #24552) 2015-07-02 16:58:22 -05:00
Benjamin Peterson
09dd773c13 merge 3.5 (#24552) 2015-07-02 16:19:05 -05:00
Benjamin Peterson
42e913aa3a merge 3.4 (#24552) 2015-07-02 16:18:58 -05:00
Benjamin Peterson
80f78a3efc fix use after free (closes #24552) 2015-07-02 16:18:38 -05:00
Lars Gustäbel
60eaba04cd Merge with 3.5: Issue #24514: tarfile now tolerates number fields consisting of only whitespace. 2015-07-02 19:42:09 +02:00
Lars Gustäbel
49c521fd5d Merge with 3.4: Issue #24514: tarfile now tolerates number fields consisting of only whitespace. 2015-07-02 19:41:03 +02:00
Lars Gustäbel
b7a688b3a4 Issue #24514: tarfile now tolerates number fields consisting of only whitespace. 2015-07-02 19:38:38 +02:00
Yury Selivanov
9dbd4790a3 Merge 3.5 2015-07-01 12:30:26 -04:00
Yury Selivanov
f27015255f Issue #24400: Add one more unittest for CoroutineType.__await__ 2015-07-01 12:29:55 -04:00
Donald Stufft
89ca395c0c merge in setuptools/pip update 2015-07-01 11:31:38 -04:00
Donald Stufft
d6e51560b3 merge in setuptools/pip update 2015-07-01 11:31:13 -04:00
Donald Stufft
fe6399e894 Update setuptools to 18.0.1 and pip to 7.1.0 2015-07-01 11:30:50 -04:00
Yury Selivanov
d18f9854b4 Merge 3.5 2015-06-30 22:06:55 -04:00
Yury Selivanov
59a3b6764c Issue #24541: Drop test_inspect.test_eightteen unittest; update docs
Suggested by Martin Panter.
2015-06-30 22:06:42 -04:00
Yury Selivanov
50d5516dce Merge 3.5 2015-06-30 21:45:03 -04:00
Yury Selivanov
22f68d5dd6 Issue #24541: Update comment in test_inspect.test_eightteen 2015-06-30 21:44:52 -04:00
Yury Selivanov
17314ab4dc Merge 3.5 (Issue #24400) 2015-06-30 21:19:00 -04:00
Yury Selivanov
8a8f453c5a Issue #24400: Fix failing unittest 2015-06-30 21:18:27 -04:00
Yury Selivanov
93a3252c9c Merge 3.5 (Issue #24400) 2015-06-30 18:19:18 -04:00
Yury Selivanov
a74b5e59af Issue #24400: Remove inspect.isawaitable().
isawaitable() was added before collections.abc.Awaitable; now,
with Awaitable, it is no longer needed (we don't have ishashable()
or isiterable() methods in the inspect module either).
2015-06-30 18:19:01 -04:00
Yury Selivanov
b2c42c2a8f Merge 3.5 2015-06-30 12:51:29 -04:00
Yury Selivanov
86cd7d6b75 test_coroutines: remove whitespace 2015-06-30 12:51:12 -04:00
Yury Selivanov
3bd2b98c29 Merge 3.5 (Issue #24528) 2015-06-30 12:49:18 -04:00
Yury Selivanov
9dec03571f Issue #24528: Improve error message for awaits in comprehensions 2015-06-30 12:49:04 -04:00
Serhiy Storchaka
c28e985f3c Issue #19176: Fixed doctype() related bugs in C implementation of ElementTree.
A deprecation warning no longer issued by XMLParser subclass with default
doctype() method.  Direct call of doctype() now issues a warning.  Parser's
doctype() now is not called if target's doctype() is called.  Based on patch
by Martin Panter.
2015-06-29 23:11:51 +03:00
Serhiy Storchaka
4a01cab898 Issue #19176: Fixed doctype() related bugs in C implementation of ElementTree.
A deprecation warning no longer issued by XMLParser subclass with default
doctype() method.  Direct call of doctype() now issues a warning.  Parser's
doctype() now is not called if target's doctype() is called.  Based on patch
by Martin Panter.
2015-06-29 23:08:52 +03:00
Serhiy Storchaka
05744ac6e0 Issue #19176: Fixed doctype() related bugs in C implementation of ElementTree.
A deprecation warning no longer issued by XMLParser subclass with default
doctype() method.  Direct call of doctype() now issues a warning.  Parser's
doctype() now is not called if target's doctype() is called.  Based on patch
by Martin Panter.
2015-06-29 22:35:58 +03:00
Serhiy Storchaka
81da944d61 Issue #24467: Fixed possible buffer over-read in bytearray. The bytearray
object now always allocates place for trailing null byte and it's buffer now
is always null-terminated.
2015-06-29 21:18:55 +03:00
Serhiy Storchaka
bc9e75ed02 Issue #24467: Fixed possible buffer over-read in bytearray. The bytearray
object now always allocates place for trailing null byte and it's buffer now
is always null-terminated.
2015-06-29 21:18:01 +03:00
Serhiy Storchaka
7b6e3b91f5 Issue #24467: Fixed possible buffer over-read in bytearray. The bytearray
object now always allocates place for trailing null byte and it's buffer now
is always null-terminated.
2015-06-29 21:14:06 +03:00
Jason R. Coombs
cbc50d96b8 Issue #20387: Merge with 3.5 2015-06-28 11:15:13 -04:00
Jason R. Coombs
a95a476b3a Issue #20387: Merge test and patch from 3.4.4 2015-06-28 11:13:30 -04:00
Jason R. Coombs
50373e6c21 Issue #20387: Merge 2015-06-28 11:10:29 -04:00
Serhiy Storchaka
1e8d91adfe Issue #24456: Fixed possible buffer over-read in adpcm2lin() and lin2adpcm()
functions of the audioop module.
2015-06-28 17:56:28 +03:00
Serhiy Storchaka
b9b9e7b46a Issue #24456: Fixed possible buffer over-read in adpcm2lin() and lin2adpcm()
functions of the audioop module.
2015-06-28 17:55:33 +03:00