[issue32564] Syntax error on using variable async

2018-01-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It raised a DeprecationWarning since 3.5. Most projects got rid of "async" and "await" identifiers before 3.7. File a bug in the Pika library. -- ___ Python tracker __

[issue32564] Syntax error on using variable async

2018-01-16 Thread Andrew Olefira
Change by Andrew Olefira : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-

[issue32564] Syntax error on using variable async

2018-01-16 Thread Andrew Olefira
Andrew Olefira added the comment: Yes, I understand, but "not recommended" != "not allowed". For example library Pika (https://pypi.python.org/pypi/pika) use variable "async", so no one project that use lib Pika can't be launched on Python 3.7a4 --

[issue32564] Syntax error on using variable async

2018-01-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See https://docs.python.org/3.7/whatsnew/3.5.html#new-keywords. -- nosy: +serhiy.storchaka ___ Python tracker ___ __

[issue32564] Syntax error on using variable async

2018-01-16 Thread Andrew Olefira
New submission from Andrew Olefira : In python 3.6 you can use name "async" for variable: >>> class A: ... async = True ... >>> but in python 3.7a4 you catch syntax error: >>> class A: ... async = True File "", line 2 async = True ^ SyntaxError: invalid syntax >>>