[issue25888] awaiting on coroutine that is being awaited should be an error

2016-03-02 Thread Yury Selivanov
Yury Selivanov added the comment: Committed. Thanks for the review, Martin! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue25888] awaiting on coroutine that is being awaited should be an error

2016-03-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset e16084e07761 by Yury Selivanov in branch '3.5': coroutines: Error when awaiting on coroutine that's being awaited https://hg.python.org/cpython/rev/e16084e07761 New changeset 2218ce5c592f by Yury Selivanov in branch 'default': Merge 3.5 (issue

[issue25888] awaiting on coroutine that is being awaited should be an error

2016-01-11 Thread Yury Selivanov
Yury Selivanov added the comment: Will commit this patch tomorrow to 3.5 and 3.6. It only affects coroutines (async defs): if an await expression is used on a coroutine object while it's being already awaited by another coroutine, a `RuntimeError("coroutine is being awaited already")` will be

[issue25888] awaiting on coroutine that is being awaited should be an error

2016-01-11 Thread Martin Panter
Martin Panter added the comment: Missing word in a comment on the review -- nosy: +martin.panter ___ Python tracker ___

[issue25888] awaiting on coroutine that is being awaited should be an error

2015-12-17 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___

[issue25888] awaiting on coroutine that is being awaited should be an error

2015-12-17 Thread Yury Selivanov
Yury Selivanov added the comment: The patch is attached, please review. -- keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file41339/Issue25888.patch ___ Python tracker

[issue25888] awaiting on coroutine that is being awaited should be an error

2015-12-16 Thread Guido van Rossum
Guido van Rossum added the comment: Right. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue25888] awaiting on coroutine that is being awaited should be an error

2015-12-16 Thread Yury Selivanov
New submission from Yury Selivanov: This problem was discussed in one of the asyncio issues here: https://github.com/python/asyncio/issues/288 I propose to raise a RuntimeError if an 'await' expression is used for a coroutine object that's being awaited on already. This change shouldn't