Zachary Ware
f2244eaf9e
Issue #20172 : Convert the _winapi module to Argument Clinic.
2015-05-13 01:22:54 -05:00
Zachary Ware
4552089617
Issue #20172 : Convert the msvcrt module to Argument Clinic.
2015-05-13 01:22:32 -05:00
Zachary Ware
fd2d482272
Issue #20172 : Convert the winreg module to Argument Clinic.
2015-05-13 01:21:57 -05:00
Zachary Ware
73f8cfb040
Issue #20172 : Convert the winsound module to Argument Clinic.
2015-05-13 01:21:21 -05:00
Zachary Ware
37ac590f7c
Clean up test_coroutines a bit.
...
No more test_main(), s/assertEquals/assertEqual/, and remove unused import.
2015-05-13 01:03:06 -05:00
Nick Coghlan
baaadbf70d
Issue 24017: fix for "async with" refcounting
...
* adds missing INCREF in WITH_CLEANUP_START
* adds missing DECREF in WITH_CLEANUP_FINISH
* adds several new tests Yury created while investigating this
2015-05-13 15:54:02 +10:00
Zachary Ware
84d3e764d7
Issue #23911 : Fix ctypes test on Windows.
...
Comparing equality of list and tuple is always False.
2015-05-13 00:34:39 -05:00
Zachary Ware
d9b25bb511
Issue #23731 : Fix tracemalloc test on Windows.
...
'a.pyo' can no longer match 'a.py', so 'a.PYO' can't either.
2015-05-13 00:27:01 -05:00
Zachary Ware
ad3e27ae4c
Issue #23193 : Skip numeric_owner tests on platforms where they don't make sense
...
In particular, the tests bomb out on Windows. The feature is a no-op on platforms
without the pwd module or os.geteuid anyway.
2015-05-12 23:57:21 -05:00
Raymond Hettinger
849564f874
Extend test coverage to include heapifying large heaps
2015-05-12 21:42:40 -07:00
Raymond Hettinger
636488043b
More timings suggest that 2500 is closer to the break-even point.
2015-05-12 21:40:50 -07:00
Raymond Hettinger
ffcd8490d0
Reduce the overhead in functools.total_ordering by localizing NotImplemented.
...
(Sugguested by Serhiy Storchaka)
2015-05-12 21:26:37 -07:00
Benjamin Peterson
276e9c841d
merge 3.4
2015-05-12 19:16:20 -04:00
Benjamin Peterson
19a3f17cb3
use imperative
2015-05-12 19:15:53 -04:00
Serhiy Storchaka
f0b5015edb
Converted os._getfullpathname() and os._isdir() to Argument Clinic.
2015-05-13 00:52:39 +03:00
Serhiy Storchaka
cd4a5cc339
Added forgotten new files for issues #22681 and #22682 .
2015-05-13 00:34:53 +03:00
Benjamin Peterson
e960d18bb2
versionadded
2015-05-12 17:24:17 -04:00
Serhiy Storchaka
48e47aaa28
Issue #22486 : Added the math.gcd() function. The fractions.gcd() function now is
...
deprecated. Based on patch by Mark Dickinson.
2015-05-13 00:19:51 +03:00
Serhiy Storchaka
f0eeedf0d8
Issue #22681 : Added support for the koi8_t encoding.
2015-05-12 23:24:19 +03:00
Serhiy Storchaka
ad8a1c3fb2
Issue #22682 : Added support for the kz1048 encoding.
2015-05-12 23:16:55 +03:00
Serhiy Storchaka
0d4df752ac
Issue #15027 : The UTF-32 encoder is now 3x to 7x faster.
2015-05-12 23:12:45 +03:00
Yury Selivanov
fdba8381ff
Issue #24017 : Unset asyncio event loop after test.
2015-05-12 14:28:08 -04:00
Yury Selivanov
08a7a4e592
asyncio: Make sure sys.set_coroutine_wrapper is called *only* when loop is running.
...
Previous approach of installing coroutine wrapper in loop.set_debug() and
uninstalling it in loop.close() was very fragile. Most of asyncio tests
do not call loop.close() at all. Since coroutine wrapper is a global
setting, we have to make sure that it's only set when the loop is
running, and is automatically unset when it stops running.
Issue #24017 .
2015-05-12 11:43:35 -04:00
Yury Selivanov
e8944cb217
asyncio: Make sure sys.set_coroutine_wrapper is called *only* when loop is running.
...
Previous approach of installing coroutine wrapper in loop.set_debug() and
uninstalling it in loop.close() was very fragile. Most of asyncio tests
do not call loop.close() at all. Since coroutine wrapper is a global
setting, we have to make sure that it's only set when the loop is
running, and is automatically unset when it stops running.
Issue #24017 .
2015-05-12 11:43:04 -04:00
Benjamin Peterson
baa2e562ce
use our normal bracing style
2015-05-12 11:32:41 -04:00
Yury Selivanov
1dde177f82
Issue #24017 : Plug ref leak.
2015-05-12 11:30:14 -04:00
Berker Peksag
688cd4e6cb
Issue #23983 : Update the pty module example.
...
Changes:
* Fixed a ResourceWarning warning
* Used argparse instead of getopt
2015-05-12 17:25:41 +03:00
Berker Peksag
c2dd680115
Issue #23983 : Update the pty module example.
...
Changes:
* Fixed a ResourceWarning warning
* Used argparse instead of getopt
2015-05-12 17:25:06 +03:00
Berker Peksag
daf0d0586e
Issue #23796 : Null merge.
2015-05-12 17:15:14 +03:00
Berker Peksag
ea6d5592f2
Issue #23796 : peak and read1 methods of BufferedReader now raise ValueError
...
if they called on a closed object.
Patch by John Hergenroeder.
2015-05-12 17:13:56 +03:00
Berker Peksag
d10d6ae2fa
Issue #23796 : peak and read1 methods of BufferedReader now raise ValueError
...
if they called on a closed object.
Patch by John Hergenroeder.
2015-05-12 17:01:05 +03:00
Serhiy Storchaka
1aa5e1d63e
Fixed compilation on Windows for issue #20173 .
2015-05-12 14:00:22 +03:00
Serhiy Storchaka
bedbf96e84
Issue #23870 : The pprint module now supports all standard collections
...
except named tuples.
2015-05-12 13:35:48 +03:00
Serhiy Storchaka
0c59ff6430
Issue #20173 : Converted the _codecs module to Argument Clinic.
2015-05-12 13:15:57 +03:00
Yury Selivanov
5096088c07
doc: Briefly mention C API changes in whatsnew.
2015-05-12 00:15:05 -04:00
Yury Selivanov
b5d6a9d470
Mention PEP 492 in whatsnew.
2015-05-12 00:09:05 -04:00
Yury Selivanov
73287d75c6
Issue 24017: Update NEWS file.
2015-05-12 00:06:31 -04:00
Yury Selivanov
df52e67d85
Fix warnings for gen_get_iter()
2015-05-11 23:23:05 -04:00
Yury Selivanov
f487a005d6
Fix warnings for PyEval_GetCoroutineWrapper
2015-05-11 23:19:34 -04:00
Raymond Hettinger
b9db9e152f
Defend against a mutation during comparison
2015-05-11 19:58:56 -07:00
Yury Selivanov
7544508f02
PEP 0492 -- Coroutines with async and await syntax. Issue #24017 .
2015-05-11 22:57:16 -04:00
Raymond Hettinger
4e6bf4b3da
merge
2015-05-11 19:59:21 -07:00
Yury Selivanov
dc6a9c0423
asyncio: Merge 3.4 -- Support PEP 492. Issue #24017 .
2015-05-11 22:31:19 -04:00
Yury Selivanov
1af2bf75a2
asyncio: Support PEP 492. Issue #24017 .
2015-05-11 22:27:25 -04:00
Raymond Hettinger
99bf9a2567
Minor code cleanups.
2015-05-11 19:25:32 -07:00
Yury Selivanov
21ee10bf04
Merge 3.4 (asyncio docs)
2015-05-11 16:34:13 -04:00
Yury Selivanov
d7e19bb566
docs/asyncio: Document new ensure_future() and deprecated async()
2015-05-11 16:33:41 -04:00
Yury Selivanov
7185461897
docs/asyncio: Document set_task_factory/get_task_factory
2015-05-11 16:28:27 -04:00
Yury Selivanov
f7a6c59de1
Null merge.
2015-05-11 14:55:54 -04:00
Yury Selivanov
5d87ec256b
Fix NEWS file.
2015-05-11 14:52:37 -04:00