On 12/01/2021 15:53, Mark Shannon wrote:
Suppose x is not a currently valid variable name at runtime. Will the NameError still be "optimised" away?Hi everyone,In master we convert `if x: pass` to `pass` which is equivalent, unless bool(x) has side effects the first time it is called. This is a recent change.
Thanks Rob Cliffe _______________________________________________ Python-Dev mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/JK4QENGPZV56RNGI5YHLWCL4OF4AEGSP/ Code of Conduct: http://python.org/psf/codeofconduct/