]> granicus.if.org Git - python/log
python
9 years agoasyncio: Add a test for asyncio.iscoroutine().
Yury Selivanov [Wed, 13 May 2015 19:34:12 +0000 (15:34 -0400)]
asyncio: Add a test for asyncio.iscoroutine().

Test that asyncio.iscoroutine() supports 'async def' coroutines and
collections.abc.Coroutine types.

9 years agoasyncio: Use 'collections.abc.Coroutine' in asyncio.iscoroutine.
Yury Selivanov [Wed, 13 May 2015 19:22:03 +0000 (15:22 -0400)]
asyncio: Use 'collections.abc.Coroutine' in asyncio.iscoroutine.

9 years agoasyncio: Use 'collections.abc.Coroutine' in asyncio.iscoroutine (in 3.5)
Yury Selivanov [Wed, 13 May 2015 19:21:41 +0000 (15:21 -0400)]
asyncio: Use 'collections.abc.Coroutine' in asyncio.iscoroutine (in 3.5)

9 years agoMerge 3.4.
Yury Selivanov [Wed, 13 May 2015 19:16:18 +0000 (15:16 -0400)]
Merge 3.4.

9 years agoSync asyncio code from default branch.
Yury Selivanov [Wed, 13 May 2015 19:15:56 +0000 (15:15 -0400)]
Sync asyncio code from default branch.

9 years agoIssue 24179: Support 'async for' for asyncio.StreamReader.
Yury Selivanov [Wed, 13 May 2015 18:23:29 +0000 (14:23 -0400)]
Issue 24179: Support 'async for' for asyncio.StreamReader.

9 years agoIssue #24064: Help property() support GC
Raymond Hettinger [Wed, 13 May 2015 18:12:33 +0000 (11:12 -0700)]
Issue #24064: Help property() support GC

9 years agoIssue 24178: support 'async with' for asyncio locks.
Yury Selivanov [Wed, 13 May 2015 18:10:38 +0000 (14:10 -0400)]
Issue 24178: support 'async with' for asyncio locks.

9 years agoIssue #20172: Update clinicizations to current clinic.
Zachary Ware [Wed, 13 May 2015 15:58:35 +0000 (10:58 -0500)]
Issue #20172: Update clinicizations to current clinic.

9 years agoremove extra space
Benjamin Peterson [Wed, 13 May 2015 15:19:27 +0000 (11:19 -0400)]
remove extra space

9 years agoremove % from title, since it makes latex barf
Benjamin Peterson [Wed, 13 May 2015 15:19:06 +0000 (11:19 -0400)]
remove % from title, since it makes latex barf

9 years agoIssue #23488: Random generator objects now consume 2x less memory on 64-bit.
Serhiy Storchaka [Wed, 13 May 2015 12:02:12 +0000 (15:02 +0300)]
Issue #23488: Random generator objects now consume 2x less memory on 64-bit.

9 years agoIssue #22064: Improve the misleading message from 2to3 when skipping optional fixers.
Berker Peksag [Wed, 13 May 2015 10:40:12 +0000 (13:40 +0300)]
Issue #22064: Improve the misleading message from 2to3 when skipping optional fixers.

Patch by Vinod Kurup.

9 years agoIssue #22064: Improve the misleading message from 2to3 when skipping optional fixers.
Berker Peksag [Wed, 13 May 2015 10:39:51 +0000 (13:39 +0300)]
Issue #22064: Improve the misleading message from 2to3 when skipping optional fixers.

Patch by Vinod Kurup.

9 years agomerge
Raymond Hettinger [Wed, 13 May 2015 09:48:21 +0000 (02:48 -0700)]
merge

9 years agoIssue #19934: Document *None* as an acceptable input to Counter.most_common([n])
Raymond Hettinger [Wed, 13 May 2015 09:47:57 +0000 (02:47 -0700)]
Issue #19934:  Document *None* as an acceptable input to Counter.most_common([n])

9 years agoIssue #23695: Explain the zip() example for clustering a data series into n-length...
Raymond Hettinger [Wed, 13 May 2015 09:34:38 +0000 (02:34 -0700)]
Issue #23695:  Explain the  zip() example for clustering a data series into n-length groups.

9 years agoIssue #1322: platform.dist() and platform.linux_distribution() functions are now...
Berker Peksag [Wed, 13 May 2015 09:32:20 +0000 (12:32 +0300)]
Issue #1322: platform.dist() and platform.linux_distribution() functions are now deprecated.

Initial patch by Vajrasky Kok.

9 years agoIssue #24064: Add __doc__ to the example in collections.rst.
Berker Peksag [Wed, 13 May 2015 09:16:27 +0000 (12:16 +0300)]
Issue #24064: Add __doc__ to the example in collections.rst.

9 years agoMinor stylistic and consistency cleanup.
Raymond Hettinger [Wed, 13 May 2015 08:44:36 +0000 (01:44 -0700)]
Minor stylistic and consistency cleanup.

9 years agoIssue #23290: Optimize set_merge() for cases where the target is empty.
Raymond Hettinger [Wed, 13 May 2015 08:26:14 +0000 (01:26 -0700)]
Issue #23290:  Optimize set_merge() for cases where the target is empty.
(Contributed by Serhiy Storchaka.)

9 years agoIssue #24064: Property() docstrings are now writeable.
Raymond Hettinger [Wed, 13 May 2015 08:09:59 +0000 (01:09 -0700)]
Issue #24064: Property() docstrings are now writeable.
(Patch by Berker Peksag.)

9 years agoIssue #20172: Convert the _winapi module to Argument Clinic.
Zachary Ware [Wed, 13 May 2015 06:22:54 +0000 (01:22 -0500)]
Issue #20172: Convert the _winapi module to Argument Clinic.

9 years agoIssue #20172: Convert the msvcrt module to Argument Clinic.
Zachary Ware [Wed, 13 May 2015 06:22:32 +0000 (01:22 -0500)]
Issue #20172: Convert the msvcrt module to Argument Clinic.

9 years agoIssue #20172: Convert the winreg module to Argument Clinic.
Zachary Ware [Wed, 13 May 2015 06:21:57 +0000 (01:21 -0500)]
Issue #20172: Convert the winreg module to Argument Clinic.

9 years agoIssue #20172: Convert the winsound module to Argument Clinic.
Zachary Ware [Wed, 13 May 2015 06:21:21 +0000 (01:21 -0500)]
Issue #20172: Convert the winsound module to Argument Clinic.

9 years agoClean up test_coroutines a bit.
Zachary Ware [Wed, 13 May 2015 06:03:06 +0000 (01:03 -0500)]
Clean up test_coroutines a bit.

No more test_main(), s/assertEquals/assertEqual/, and remove unused import.

9 years agoIssue 24017: fix for "async with" refcounting
Nick Coghlan [Wed, 13 May 2015 05:54:02 +0000 (15:54 +1000)]
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

9 years agoIssue #23911: Fix ctypes test on Windows.
Zachary Ware [Wed, 13 May 2015 05:34:39 +0000 (00:34 -0500)]
Issue #23911: Fix ctypes test on Windows.

Comparing equality of list and tuple is always False.

9 years agoIssue #23731: Fix tracemalloc test on Windows.
Zachary Ware [Wed, 13 May 2015 05:27:01 +0000 (00:27 -0500)]
Issue #23731: Fix tracemalloc test on Windows.

'a.pyo' can no longer match 'a.py', so 'a.PYO' can't either.

9 years agoIssue #23193: Skip numeric_owner tests on platforms where they don't make sense
Zachary Ware [Wed, 13 May 2015 04:57:21 +0000 (23:57 -0500)]
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.

9 years agoExtend test coverage to include heapifying large heaps
Raymond Hettinger [Wed, 13 May 2015 04:42:40 +0000 (21:42 -0700)]
Extend test coverage to include heapifying large heaps

9 years agoMore timings suggest that 2500 is closer to the break-even point.
Raymond Hettinger [Wed, 13 May 2015 04:40:50 +0000 (21:40 -0700)]
More timings suggest that 2500 is closer to the break-even point.

9 years agoReduce the overhead in functools.total_ordering by localizing NotImplemented.
Raymond Hettinger [Wed, 13 May 2015 04:26:37 +0000 (21:26 -0700)]
Reduce the overhead in functools.total_ordering by localizing NotImplemented.
(Sugguested by Serhiy Storchaka)

9 years agomerge 3.4
Benjamin Peterson [Tue, 12 May 2015 23:16:20 +0000 (19:16 -0400)]
merge 3.4

9 years agouse imperative
Benjamin Peterson [Tue, 12 May 2015 23:15:53 +0000 (19:15 -0400)]
use imperative

9 years agoConverted os._getfullpathname() and os._isdir() to Argument Clinic.
Serhiy Storchaka [Tue, 12 May 2015 21:52:39 +0000 (00:52 +0300)]
Converted os._getfullpathname() and os._isdir() to Argument Clinic.

9 years agoAdded forgotten new files for issues #22681 and #22682.
Serhiy Storchaka [Tue, 12 May 2015 21:34:53 +0000 (00:34 +0300)]
Added forgotten new files for issues #22681 and #22682.

9 years agoversionadded
Benjamin Peterson [Tue, 12 May 2015 21:24:17 +0000 (17:24 -0400)]
versionadded

9 years agoIssue #22486: Added the math.gcd() function. The fractions.gcd() function now is
Serhiy Storchaka [Tue, 12 May 2015 21:19:51 +0000 (00:19 +0300)]
Issue #22486: Added the math.gcd() function.  The fractions.gcd() function now is
deprecated.  Based on patch by Mark Dickinson.

9 years agoIssue #22681: Added support for the koi8_t encoding.
Serhiy Storchaka [Tue, 12 May 2015 20:24:19 +0000 (23:24 +0300)]
Issue #22681: Added support for the koi8_t encoding.

9 years agoIssue #22682: Added support for the kz1048 encoding.
Serhiy Storchaka [Tue, 12 May 2015 20:16:55 +0000 (23:16 +0300)]
Issue #22682: Added support for the kz1048 encoding.

9 years agoIssue #15027: The UTF-32 encoder is now 3x to 7x faster.
Serhiy Storchaka [Tue, 12 May 2015 20:12:45 +0000 (23:12 +0300)]
Issue #15027: The UTF-32 encoder is now 3x to 7x faster.

9 years agoIssue #24017: Unset asyncio event loop after test.
Yury Selivanov [Tue, 12 May 2015 18:28:08 +0000 (14:28 -0400)]
Issue #24017: Unset asyncio event loop after test.

9 years agoasyncio: Make sure sys.set_coroutine_wrapper is called *only* when loop is running.
Yury Selivanov [Tue, 12 May 2015 15:43:35 +0000 (11:43 -0400)]
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.

9 years agoasyncio: Make sure sys.set_coroutine_wrapper is called *only* when loop is running.
Yury Selivanov [Tue, 12 May 2015 15:43:04 +0000 (11:43 -0400)]
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.

9 years agouse our normal bracing style
Benjamin Peterson [Tue, 12 May 2015 15:32:41 +0000 (11:32 -0400)]
use our normal bracing style

9 years agoIssue #24017: Plug ref leak.
Yury Selivanov [Tue, 12 May 2015 15:30:14 +0000 (11:30 -0400)]
Issue #24017: Plug ref leak.

9 years agoIssue #23983: Update the pty module example.
Berker Peksag [Tue, 12 May 2015 14:25:41 +0000 (17:25 +0300)]
Issue #23983: Update the pty module example.

Changes:

* Fixed a ResourceWarning warning
* Used argparse instead of getopt

9 years agoIssue #23983: Update the pty module example.
Berker Peksag [Tue, 12 May 2015 14:25:06 +0000 (17:25 +0300)]
Issue #23983: Update the pty module example.

Changes:

* Fixed a ResourceWarning warning
* Used argparse instead of getopt

9 years agoIssue #23796: Null merge.
Berker Peksag [Tue, 12 May 2015 14:15:14 +0000 (17:15 +0300)]
Issue #23796: Null merge.

9 years agoIssue #23796: peak and read1 methods of BufferedReader now raise ValueError
Berker Peksag [Tue, 12 May 2015 14:13:56 +0000 (17:13 +0300)]
Issue #23796: peak and read1 methods of BufferedReader now raise ValueError
if they called on a closed object.

Patch by John Hergenroeder.

9 years agoIssue #23796: peak and read1 methods of BufferedReader now raise ValueError
Berker Peksag [Tue, 12 May 2015 14:01:05 +0000 (17:01 +0300)]
Issue #23796: peak and read1 methods of BufferedReader now raise ValueError
if they called on a closed object.

Patch by John Hergenroeder.

9 years agoFixed compilation on Windows for issue #20173.
Serhiy Storchaka [Tue, 12 May 2015 11:00:22 +0000 (14:00 +0300)]
Fixed compilation on Windows for issue #20173.

9 years agoIssue #23870: The pprint module now supports all standard collections
Serhiy Storchaka [Tue, 12 May 2015 10:35:48 +0000 (13:35 +0300)]
Issue #23870: The pprint module now supports all standard collections
except named tuples.

9 years agoIssue #20173: Converted the _codecs module to Argument Clinic.
Serhiy Storchaka [Tue, 12 May 2015 10:15:57 +0000 (13:15 +0300)]
Issue #20173: Converted the _codecs module to Argument Clinic.

9 years agodoc: Briefly mention C API changes in whatsnew.
Yury Selivanov [Tue, 12 May 2015 04:15:05 +0000 (00:15 -0400)]
doc: Briefly mention C API changes in whatsnew.

9 years agoMention PEP 492 in whatsnew.
Yury Selivanov [Tue, 12 May 2015 04:09:05 +0000 (00:09 -0400)]
Mention PEP 492 in whatsnew.

9 years agoIssue 24017: Update NEWS file.
Yury Selivanov [Tue, 12 May 2015 04:06:31 +0000 (00:06 -0400)]
Issue 24017: Update NEWS file.

9 years agoFix warnings for gen_get_iter()
Yury Selivanov [Tue, 12 May 2015 03:23:05 +0000 (23:23 -0400)]
Fix warnings for gen_get_iter()

9 years agoFix warnings for PyEval_GetCoroutineWrapper
Yury Selivanov [Tue, 12 May 2015 03:19:34 +0000 (23:19 -0400)]
Fix warnings for PyEval_GetCoroutineWrapper

9 years agoDefend against a mutation during comparison
Raymond Hettinger [Tue, 12 May 2015 02:58:56 +0000 (19:58 -0700)]
Defend against a mutation during comparison

9 years agoPEP 0492 -- Coroutines with async and await syntax. Issue #24017.
Yury Selivanov [Tue, 12 May 2015 02:57:16 +0000 (22:57 -0400)]
PEP 0492 -- Coroutines with async and await syntax. Issue #24017.

9 years agomerge
Raymond Hettinger [Tue, 12 May 2015 02:59:21 +0000 (19:59 -0700)]
merge

9 years agoasyncio: Merge 3.4 -- Support PEP 492. Issue #24017.
Yury Selivanov [Tue, 12 May 2015 02:31:19 +0000 (22:31 -0400)]
asyncio: Merge 3.4 -- Support PEP 492. Issue #24017.

9 years agoasyncio: Support PEP 492. Issue #24017.
Yury Selivanov [Tue, 12 May 2015 02:27:25 +0000 (22:27 -0400)]
asyncio: Support PEP 492. Issue #24017.

9 years agoMinor code cleanups.
Raymond Hettinger [Tue, 12 May 2015 02:25:32 +0000 (19:25 -0700)]
Minor code cleanups.

9 years agoMerge 3.4 (asyncio docs)
Yury Selivanov [Mon, 11 May 2015 20:34:13 +0000 (16:34 -0400)]
Merge 3.4 (asyncio docs)

9 years agodocs/asyncio: Document new ensure_future() and deprecated async()
Yury Selivanov [Mon, 11 May 2015 20:33:41 +0000 (16:33 -0400)]
docs/asyncio: Document new ensure_future() and deprecated async()

9 years agodocs/asyncio: Document set_task_factory/get_task_factory
Yury Selivanov [Mon, 11 May 2015 20:28:27 +0000 (16:28 -0400)]
docs/asyncio: Document set_task_factory/get_task_factory

9 years agoNull merge.
Yury Selivanov [Mon, 11 May 2015 18:55:54 +0000 (14:55 -0400)]
Null merge.

9 years agoFix NEWS file.
Yury Selivanov [Mon, 11 May 2015 18:52:37 +0000 (14:52 -0400)]
Fix NEWS file.

9 years agoMerge 3.4 (asyncio changes)
Yury Selivanov [Mon, 11 May 2015 18:50:41 +0000 (14:50 -0400)]
Merge 3.4 (asyncio changes)

9 years agoasyncio: async() function is deprecated in favour of ensure_future().
Yury Selivanov [Mon, 11 May 2015 18:48:38 +0000 (14:48 -0400)]
asyncio: async() function is deprecated in favour of ensure_future().

9 years agoasyncio: Drop JoinableQueue from 3.5
Yury Selivanov [Mon, 11 May 2015 18:42:43 +0000 (14:42 -0400)]
asyncio: Drop JoinableQueue from 3.5

9 years agoMerge 3.4 (asyncio)
Yury Selivanov [Mon, 11 May 2015 18:40:56 +0000 (14:40 -0400)]
Merge 3.4 (asyncio)

9 years agoSync asyncio changes from the main repo.
Yury Selivanov [Mon, 11 May 2015 18:23:38 +0000 (14:23 -0400)]
Sync asyncio changes from the main repo.

9 years agoasyncio: Sync with github repo
Yury Selivanov [Mon, 11 May 2015 17:48:16 +0000 (13:48 -0400)]
asyncio: Sync with github repo

9 years agoMinor stylistic clean-up.
Raymond Hettinger [Mon, 11 May 2015 17:32:57 +0000 (10:32 -0700)]
Minor stylistic clean-up.

9 years agoIssue #24155: Optimize heapify for better cache utililzation.
Raymond Hettinger [Mon, 11 May 2015 17:19:03 +0000 (10:19 -0700)]
Issue #24155: Optimize heapify for better cache utililzation.

9 years ago#21795: advertise 8BITMIME if decode_data is False.
R David Murray [Mon, 11 May 2015 16:11:40 +0000 (12:11 -0400)]
#21795: advertise 8BITMIME if decode_data is False.

Patch by Milan Oberkirch, with a few updates.  This changeset also
tweaks the smtpd and whatsnew docs for smtpd into what should be
the final form for the 3.5 release.

9 years agomerge heads
Benjamin Peterson [Mon, 11 May 2015 01:20:01 +0000 (21:20 -0400)]
merge heads

9 years agomerge 3.4
Benjamin Peterson [Mon, 11 May 2015 01:19:56 +0000 (21:19 -0400)]
merge 3.4

9 years agoadd trailing slash
Benjamin Peterson [Mon, 11 May 2015 01:19:18 +0000 (21:19 -0400)]
add trailing slash

9 years ago#21800: Add RFC 6855 support to imaplib.
R David Murray [Sun, 10 May 2015 23:17:23 +0000 (19:17 -0400)]
#21800: Add RFC 6855 support to imaplib.

Original patch by Milan Oberkirch, updated by myself and
Maciej Szulik.

9 years agoIssue #22906: Do incref before SetCause/SetContext
Yury Selivanov [Sun, 10 May 2015 19:09:46 +0000 (15:09 -0400)]
Issue #22906: Do incref before SetCause/SetContext

9 years agoFix news entry for issue 24018.
Guido van Rossum [Sat, 9 May 2015 18:37:23 +0000 (11:37 -0700)]
Fix news entry for issue 24018.

9 years agoIssue 22906: Increment refcount after PyException_SetContext
Yury Selivanov [Sat, 9 May 2015 18:04:17 +0000 (14:04 -0400)]
Issue 22906: Increment refcount after PyException_SetContext

9 years agoIssue 22906: Add test file.
Yury Selivanov [Sat, 9 May 2015 17:53:57 +0000 (13:53 -0400)]
Issue 22906: Add test file.

9 years agoPEP 479: Change StopIteration handling inside generators.
Yury Selivanov [Sat, 9 May 2015 15:44:30 +0000 (11:44 -0400)]
PEP 479: Change StopIteration handling inside generators.

Closes issue #22906.

9 years agoIssue #24018: Add a collections.Generator abstract base class.
Raymond Hettinger [Sat, 9 May 2015 05:07:23 +0000 (01:07 -0400)]
Issue #24018: Add a collections.Generator abstract base class.

9 years agomerge 3.4
Benjamin Peterson [Sat, 9 May 2015 04:29:08 +0000 (00:29 -0400)]
merge 3.4

9 years agoensure .keywords is always a dict
Benjamin Peterson [Sat, 9 May 2015 04:25:18 +0000 (00:25 -0400)]
ensure .keywords is always a dict

9 years agomerge 3.4 (#23042)
Benjamin Peterson [Sat, 9 May 2015 01:32:36 +0000 (21:32 -0400)]
merge 3.4 (#23042)

9 years agomerge heads
Benjamin Peterson [Sat, 9 May 2015 01:32:19 +0000 (21:32 -0400)]
merge heads

9 years agofix libffi compilation on FreeBSD (#23042)
Benjamin Peterson [Sat, 9 May 2015 01:31:36 +0000 (21:31 -0400)]
fix libffi compilation on FreeBSD (#23042)

Patch from Marc-Andre Lemburg.

9 years agomerge - upgrade setuptools to 15.2
Donald Stufft [Sat, 9 May 2015 01:30:37 +0000 (21:30 -0400)]
merge - upgrade setuptools to 15.2

9 years agoUpgrade setuptools to 15.2
Donald Stufft [Sat, 9 May 2015 01:30:04 +0000 (21:30 -0400)]
Upgrade setuptools to 15.2

9 years agoMinor updates to the OS X installer ReadMe.rtf.
Ned Deily [Fri, 8 May 2015 21:46:53 +0000 (14:46 -0700)]
Minor updates to the OS X installer ReadMe.rtf.

9 years agoMinor updates to the OS X installer ReadMe.rtf.
Ned Deily [Fri, 8 May 2015 21:42:32 +0000 (14:42 -0700)]
Minor updates to the OS X installer ReadMe.rtf.