Yury Selivanov added the comment:
Please find attached a new patch that exposes 'cr_await' attribute on coroutine
objects. I don't think we can merge 'gi_yieldfrom' in 3.5, but 'cr_await'
should probably be fine.
--
Added file: http://bugs.python.org/file39776/cr_await.patch
Stefan Behnel added the comment:
No problem for Cython either.
The change in issue 24400 that makes coroutines real Awaitables also removes
surprises for a cr_await return value being a coroutine and previously *not*
an Awaitable.
The contract for gi_yieldfrom is only that the returned value
Changes by Stefan Behnel sco...@users.sourceforge.net:
--
nosy: +scoder
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24450
___
___
Benno Leslie added the comment:
I've tried to address all the issues raised in the review of the first patch.
--
Added file: http://bugs.python.org/file39725/gi_yieldfrom.v1.patch
___
Python tracker rep...@bugs.python.org
Nick Coghlan added the comment:
Marking this as dependent on issue 24400, as that refactors the PEP 492
implementation to make coroutines their own type (albeit one that shares a
memory layout and some attribute names with generators at the C layer).
I'd suggest cr_await as the calculated
Changes by Yury Selivanov yseliva...@gmail.com:
--
nosy: +arigo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24450
___
___
Python-bugs-list
Armin Rigo added the comment:
No problem from PyPy.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24450
___
___
Python-bugs-list mailing list
Changes by Yury Selivanov yseliva...@gmail.com:
--
nosy: +fwierzbicki
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24450
___
___
Python-bugs-list
Yury Selivanov added the comment:
I think we need some feedback from PyPy Jython guys on this. I'm not sure
that they can expose 'yieldfrom' slot without some performance penalties.
--
nosy: +yselivanov
___
Python tracker rep...@bugs.python.org
Changes by Yury Selivanov yseliva...@gmail.com:
--
assignee: - yselivanov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24450
___
___
New submission from Benno Leslie:
When a co-routine has delegated computation to another co-routine via yield
from, it is useful to be able to access the delegated-to co-routine.
This proposed enhancement would add a new calculated property to the generator
object called gi_yieldfrom, which
Benno Leslie added the comment:
Attached is my first attempt at implementing this feature.
It includes to implementation, updates to documentation, and added test cases.
I'm not a regular contributor so look forward to any feedback on improving the
patch.
--
keywords: +patch
Added
Martin Panter added the comment:
I left some comments on Reitveld.
Does this also apply to the new “async def” native coroutines? If not, I think
it should be made to.
--
nosy: +vadmium
stage: - patch review
___
Python tracker
Changes by Ethan Furman et...@stoneleaf.us:
--
nosy: +ethan.furman
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24450
___
___
Python-bugs-list
14 matches
Mail list logo