[issue38013] AsyncGenerator breaks when not iterated fully with RuntimeError("can't send non-None value to a just-started coroutine")

2019-09-17 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38013] AsyncGenerator breaks when not iterated fully with RuntimeError("can't send non-None value to a just-started coroutine")

2019-09-17 Thread miss-islington


miss-islington  added the comment:


New changeset 3c1786f18b1542e71454f37e3f3ca1ef3eec0e5f by Miss Islington (bot) 
in branch '3.8':
bpo-38013: make async_generator_athrow object tolerant to throwing exceptions 
(GH-16070)
https://github.com/python/cpython/commit/3c1786f18b1542e71454f37e3f3ca1ef3eec0e5f


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38013] AsyncGenerator breaks when not iterated fully with RuntimeError("can't send non-None value to a just-started coroutine")

2019-09-17 Thread miss-islington


miss-islington  added the comment:


New changeset fc022f04b41a79cacdff380435c30c8042c82b99 by Miss Islington (bot) 
in branch '3.7':
bpo-38013: make async_generator_athrow object tolerant to throwing exceptions 
(GH-16070)
https://github.com/python/cpython/commit/fc022f04b41a79cacdff380435c30c8042c82b99


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38013] AsyncGenerator breaks when not iterated fully with RuntimeError("can't send non-None value to a just-started coroutine")

2019-09-17 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15829
pull_request: https://github.com/python/cpython/pull/16232

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38013] AsyncGenerator breaks when not iterated fully with RuntimeError("can't send non-None value to a just-started coroutine")

2019-09-17 Thread miss-islington


miss-islington  added the comment:


New changeset c275312a6284bd319ea33c9abd7e15c230eca43f by Miss Islington (bot) 
(Andrew Svetlov) in branch 'master':
bpo-38013: make async_generator_athrow object tolerant to throwing exceptions 
(GH-16070)
https://github.com/python/cpython/commit/c275312a6284bd319ea33c9abd7e15c230eca43f


--
nosy: +miss-islington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38013] AsyncGenerator breaks when not iterated fully with RuntimeError("can't send non-None value to a just-started coroutine")

2019-09-17 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15828
pull_request: https://github.com/python/cpython/pull/16231

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38013] AsyncGenerator breaks when not iterated fully with RuntimeError("can't send non-None value to a just-started coroutine")

2019-09-17 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Thanks, Ned.
I love to include this in 3.7.5.
I've pinged Yuri offline with ask for review

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38013] AsyncGenerator breaks when not iterated fully with RuntimeError("can't send non-None value to a just-started coroutine")

2019-09-16 Thread Ned Deily


Ned Deily  added the comment:

> I've added 'release blocker' priority to don't miss this bugfix for the next 
> release.

Note that 3.7.5rc1 is scheduled to be tagged today so we need to make a 
decision on whether to hold the release for a fix.  From a quick test, it looks 
like the behavior was introduced in 3.7.1 as the test does not fail for me with 
3.7.0. If so, that seems to meet the criteria for a maintenance release 
regression and thus potentially a release blocker.

--
assignee:  -> asvetlov
keywords: +3.7regression

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38013] AsyncGenerator breaks when not iterated fully with RuntimeError("can't send non-None value to a just-started coroutine")

2019-09-15 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

I have a PR for the fix.
Yuri preliminary agrees with the patch but he requested more time for careful 
review.

I've added 'release blocker' priority to don't miss this bugfix for the next 
release.

--
nosy: +lukasz.langa, ned.deily
priority: normal -> release blocker
versions: +Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38013] AsyncGenerator breaks when not iterated fully with RuntimeError("can't send non-None value to a just-started coroutine")

2019-09-12 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +xtreak

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38013] AsyncGenerator breaks when not iterated fully with RuntimeError("can't send non-None value to a just-started coroutine")

2019-09-12 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
pull_requests: +15691
pull_request: https://github.com/python/cpython/pull/16070

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38013] AsyncGenerator breaks when not iterated fully with RuntimeError("can't send non-None value to a just-started coroutine")

2019-09-12 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
keywords: +patch
pull_requests: +15684
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/16061

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38013] AsyncGenerator breaks when not iterated fully with RuntimeError("can't send non-None value to a just-started coroutine")

2019-09-02 Thread Michael Yoo


New submission from Michael Yoo :

Version: Python 3.7.3

When I run this code:

import asyncio


class TestAsyncGenerator:
def __init__(self):
pass

async def aiter(self):
yield 1
yield 2


async def main():
gen = TestAsyncGenerator()
async for number in gen.aiter():
break


asyncio.run(main())

# unhandled exception during asyncio.run() shutdown
# task: ()> 
exception=RuntimeError("can't send non-None value to a just-started coroutine")>
# RuntimeError: can't send non-None value to a just-started coroutine


There is a warning message that I don't expect to see. I would expect breaking 
from an async iteration to behave as if breaking from a normal iteration - that 
is, no problems.

However, I see the warning message shown above. Am I missing something? 
Otherwise, I believe this is a bug. Thanks!

--
components: asyncio
messages: 351044
nosy: Michael Yoo, asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: AsyncGenerator breaks when not iterated fully with RuntimeError("can't 
send non-None value to a just-started coroutine")
type: behavior
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com