[Python-Dev] PEP 572: Assignment Expressions (original) (raw)

Barry Warsaw barry at python.org
Wed Apr 18 16:26:04 EDT 2018


On Apr 18, 2018, at 11:17, Chris Angelico <rosuav at gmail.com> wrote:

At the moment, it isn't aware of 'del’.

I don’t know if it’s relevant to the current discussion, but don’t forget about implicit dels:

def foo(): x = 1 try: 1/0 except ZeroDivisionError as x: pass print(x)

This is one of my favorite Python oddities because it always makes me look like a genius when I diagnose it. :)

-Barry

-------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: Message signed with OpenPGP URL: <http://mail.python.org/pipermail/python-dev/attachments/20180418/b3852073/attachment.sig>



More information about the Python-Dev mailing list