r/Python • • Jan 21 '22

News PEP 679 -- Allow parentheses in assert statements

https://www.python.org/dev/peps/pep-0679/
209 Upvotes

112 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Jan 22 '22

No, a statement like assert = ... will always be a syntax error in all versions of Python.