[Python-Dev] Examples for PEP 572 (original) (raw)

Steven D'Aprano steve at pearwood.info
Wed Jul 4 22:41:05 EDT 2018


On Wed, Jul 04, 2018 at 01:00:41PM -0700, Devin Jeanpierre wrote:

On Wed, Jul 4, 2018 at 11:04 AM Steven D'Aprano <steve at pearwood.info> wrote: > Did you actually mean arbitrary simple statements? > > if import math; mylist.sort(); print("WTF am I reading?"); True: > pass

Yes.

Okay, you just broke my brain.

I was sure that you were going to complain that I was misrepresenting your position, or attacking a strawman, or something.

I did not imagine for a second that you actually would prefer to allow the above code over assignment expressions.

-- Steve



More information about the Python-Dev mailing list