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/Anonymous_user_2022 Jan 21 '22

It's a parse-time check. Just as it is with the assert statement of today. The -O flags does not change at runtime