Yury Selivanov <yseliva...@gmail.com> added the comment: > Did you mean {} for the outer brackets intead of []?
Yes, my bad. > All of these should only be allowed inside 'async def' though, right? Yep, except async generator expressions which are allowed to appear in synchronous contexts, e.g.: def foo(): return (i async for i in ai) (this already works in 3.7). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33346> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com