[issue33363] async for statement is not a syntax error in sync context

2018-04-27 Thread Yury Selivanov

Yury Selivanov  added the comment:

Thanks so much!

--
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



[issue33363] async for statement is not a syntax error in sync context

2018-04-27 Thread Yury Selivanov

Yury Selivanov  added the comment:


New changeset a93a663d6c2fdfbddbda9729c96e2737c0012522 by Yury Selivanov (Zsolt 
Dollenstein) in branch '3.7':
[3.7] bpo-33363: raise SyntaxError for async for/with outside async functions 
(GH-6616). (GH-6619)
https://github.com/python/cpython/commit/a93a663d6c2fdfbddbda9729c96e2737c0012522


--

___
Python tracker 

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



[issue33363] async for statement is not a syntax error in sync context

2018-04-27 Thread Zsolt Dollenstein

Change by Zsolt Dollenstein :


--
pull_requests: +6315

___
Python tracker 

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



[issue33363] async for statement is not a syntax error in sync context

2018-04-27 Thread Yury Selivanov

Yury Selivanov  added the comment:


New changeset e2396506606115e785c94ec129eb86e2ed0aa744 by Yury Selivanov (Zsolt 
Dollenstein) in branch 'master':
bpo-33363: raise SyntaxError for async for/with outside async functions (#6616)
https://github.com/python/cpython/commit/e2396506606115e785c94ec129eb86e2ed0aa744


--

___
Python tracker 

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



[issue33363] async for statement is not a syntax error in sync context

2018-04-26 Thread Zsolt Dollenstein

Change by Zsolt Dollenstein :


--
keywords: +patch
pull_requests: +6312
stage:  -> patch review

___
Python tracker 

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



[issue33363] async for statement is not a syntax error in sync context

2018-04-25 Thread Nathaniel Smith

Nathaniel Smith  added the comment:

Sorry, not sure why bpo decided to reset the priority there.

--
priority: normal -> release blocker

___
Python tracker 

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



[issue33363] async for statement is not a syntax error in sync context

2018-04-25 Thread Nathaniel Smith

Change by Nathaniel Smith :


--
nosy: +njs
priority: release blocker -> normal

___
Python tracker 

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



[issue33363] async for statement is not a syntax error in sync context

2018-04-25 Thread Yury Selivanov

Yury Selivanov  added the comment:

Wow, this is a regression that has to be fixed in 3.7.

--
nosy: +ned.deily, yselivanov
priority: normal -> release blocker

___
Python tracker 

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



[issue33363] async for statement is not a syntax error in sync context

2018-04-25 Thread Zsolt Dollenstein

New submission from Zsolt Dollenstein :

Since 3.7, async generators can be used in non-async functions. The way this is 
implemented allows the following to be valid syntax:

def f():
async for i in aiterable:
pass
return 1

The return value of the above function is a Future that will never be done().

--
components: Interpreter Core
messages: 315775
nosy: zsol
priority: normal
severity: normal
status: open
title: async for statement is not a syntax error in sync context
type: behavior
versions: Python 3.7, Python 3.8

___
Python tracker 

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