Commit graph

22774 commits

Author SHA1 Message Date
Serhiy Storchaka
c4b4d4e2d8 Issue #28214: Improved exception reporting for problematic __set_name__
attributes.
2016-10-21 17:15:20 +03:00
Serhiy Storchaka
d5d32d2127 Issue #28214: Improved exception reporting for problematic __set_name__
attributes.
2016-10-21 17:13:31 +03:00
Serhiy Storchaka
14ab277632 Issue #28410: Added _PyErr_FormatFromCause() -- the helper for raising
new exception with setting current exception as __cause__.

_PyErr_FormatFromCause(exception, format, args...) is equivalent to Python

    raise exception(format % args) from sys.exc_info()[1]
2016-10-21 17:10:42 +03:00
Serhiy Storchaka
467ab194fc Issue #28410: Added _PyErr_FormatFromCause() -- the helper for raising
new exception with setting current exception as __cause__.

_PyErr_FormatFromCause(exception, format, args...) is equivalent to Python

    raise exception(format % args) from sys.exc_info()[1]
2016-10-21 17:09:17 +03:00
INADA Naoki
fdf6418630 Issue #18219: Optimize csv.DictWriter for large number of columns.
Patch by Mariatta Wijaya.
2016-10-21 19:53:30 +09:00
INADA Naoki
0a421a28f8 Issue #18219: Optimize csv.DictWriter for large number of columns.
Patch by Mariatta Wijaya.
2016-10-21 19:47:57 +09:00
Martin Panter
ccb2c0e310 Issue #23214: Implement optional BufferedReader, BytesIO read1() argument 2016-10-20 23:48:14 +00:00
Martin Panter
ea8762cae6 Merge test suite fixes from 3.6 2016-10-20 22:36:18 +00:00
Martin Panter
56b2cf5e85 Issue #28484: Skip tests if GIL is not used or multithreading is disabled 2016-10-20 21:45:49 +00:00
Yury Selivanov
3ceee7b0da Merge 3.6 (issue #28492) 2016-10-20 15:54:51 -04:00
Yury Selivanov
a4b884f900 Issue #28492: Fix how StopIteration is raised in _asyncio.Future 2016-10-20 15:54:20 -04:00
Martin Panter
10f29c9037 Issue #28471: Avoid ResourceWarning by detaching test socket 2016-10-20 07:44:29 +00:00
Martin Panter
812f6e1f23 Issue #28480: Merge multithreading fixes from 3.6 2016-10-20 05:25:14 +00:00
Martin Panter
94332cba0f Issue #28480: Adjust or skip tests if multithreading is disabled 2016-10-20 05:10:44 +00:00
Xavier de Gaye
18207ea32b Issue #26944: Merge with 3.6. 2016-10-19 11:08:07 +02:00
Xavier de Gaye
24c3b4928e Issue #26944: Fix test_posix for Android where 'id -G' is entirely wrong
or missing the effective gid.
2016-10-19 11:00:26 +02:00
Victor Stinner
bd1b49a242 Close #28476: Reuse math.factorial() in test_random
Patch written by Francisco Couzo.
2016-10-19 10:11:37 +02:00
Yury Selivanov
193a360570 Merge 3.6 (issue #28471) 2016-10-18 16:04:40 -04:00
Yury Selivanov
fa22b29960 Issue #28471: Fix crash (GIL state related) in socket.setblocking 2016-10-18 16:03:52 -04:00
Victor Stinner
62cca920db timeit: add newlines to output for readability
Issue #28240.
2016-10-18 17:55:18 +02:00
Victor Stinner
c3e40f8c5b timeit: add nsec (nanosecond) unit for format timings
Issue #28240.
2016-10-18 17:42:48 +02:00
Victor Stinner
61de57f175 timeit: enhance format of raw timings (in verbose mode)
Issue #28240.
2016-10-18 17:56:42 +02:00
Victor Stinner
3d7feb9ac2 timeit: remove --clock and --time options
Issue #28240: timeit: remove -c/--clock and -t/--time command line options
which were deprecated since Python 3.3.
2016-10-18 17:18:21 +02:00
Victor Stinner
1b90115304 timeit: change default repeat to 5, instead of 3
Issue #28240: timeit now repeats the benchmarks 5 times instead of only 3 to
make benchmarks more reliable.
2016-10-18 17:13:22 +02:00
Victor Stinner
f8fb82cd25 timeit: start autorange with 1 iteration, not 10
Issue #28240: timeit autorange now uses a single loop iteration if the
benchmark takes less than 10 seconds, instead of 10 iterations.

"python3 -m timeit -s 'import time' 'time.sleep(1)'" now takes 4 seconds
instead of 40 seconds.
2016-10-18 17:06:56 +02:00
Victor Stinner
8f5dd35d8e Merge 3.7: Issue #28409: regrtest: fix the parser of command line arguments. 2016-10-17 18:15:07 +02:00
Victor Stinner
a506a93b0b Merge 3.6: Issue #28409: regrtest: fix the parser of command line arguments. 2016-10-17 18:13:46 +02:00
Victor Stinner
1f6b69b749 Issue #28409: regrtest: fix the parser of command line arguments. 2016-10-17 18:11:03 +02:00
Raymond Hettinger
9c5bcbf81b merge 2016-10-14 01:20:00 -04:00
Raymond Hettinger
7b16652f1c Issue #18844: Add more tests 2016-10-14 01:19:38 -04:00
Xavier de Gaye
b4474848de Issue #20766: Merge with 3.6. 2016-10-12 20:18:33 +02:00
Xavier de Gaye
291417da7f Issue #20766: Merge with 3.5. 2016-10-12 20:16:05 +02:00
Xavier de Gaye
10e54aeaa2 Issue #20766: Fix references leaked by pdb in the handling of SIGINT handlers. 2016-10-12 20:13:24 +02:00
Raymond Hettinger
22e25cb1db merge 2016-10-12 01:42:40 -04:00
Raymond Hettinger
1c3a121bb0 Issue #18844: Fix-up examples for random.choices(). Remove over-specified test. 2016-10-12 01:42:10 -04:00
Martin Panter
dd21cc3516 Issue #28394: Merge typo fixes from 3.6 2016-10-10 00:42:50 +00:00
Martin Panter
b1321fba53 Issue #28394: More typo fixes for 3.6+ 2016-10-10 00:38:21 +00:00
Martin Panter
fd1df3fef2 Issue #28394: Merge typo fixes from 3.5 into 3.6 2016-10-10 00:28:38 +00:00
Martin Panter
d2a584b47b Issue #28394: Spelling and typo fixes in code comments and changelog
Includes patch by Ville Skyttä.
2016-10-10 00:24:34 +00:00
Yury Selivanov
d4ea2ec38a Merge 3.6 (issue #27972) 2016-10-09 12:21:03 -04:00
Yury Selivanov
917c1c3ee1 Merge 3.5 (issue #27972) 2016-10-09 12:20:44 -04:00
Yury Selivanov
4145c83806 Issue #27972: Prohibit Tasks to await on themselves. 2016-10-09 12:19:12 -04:00
Yury Selivanov
cfa6b72a47 Merge 3.6 (issue #28399) 2016-10-09 12:16:26 -04:00
Yury Selivanov
88e8aca78d Merge 3.5 (issue #28399) 2016-10-09 12:16:08 -04:00
Yury Selivanov
908d55dd7e Issue #28399: Remove UNIX socket from FS before binding.
Patch by Коренберг Марк.
2016-10-09 12:15:08 -04:00
Guido van Rossum
a774a6bd82 Merge further typing.py changes from upstream. (merge 3.6->3.7) 2016-10-08 20:28:16 -07:00
Guido van Rossum
518599b24c Merge further typing.py changes from upstream. (merge 3.5->3.6) 2016-10-08 20:27:55 -07:00
Guido van Rossum
e259267e52 Merge further typing.py changes from upstream. 2016-10-08 20:27:22 -07:00
Serhiy Storchaka
74a7e3b981 Merge from 3.6. 2016-10-08 22:48:07 +03:00
Serhiy Storchaka
21d9f10c94 Merge from 3.5. 2016-10-08 22:46:01 +03:00