[Python-Dev] What's the status of PEP 505: None-aware operators? (original) (raw)

Christian Heimes christian at python.org
Tue Nov 28 15:48:01 EST 2017


On 2017-11-28 21:31, Raymond Hettinger wrote:

I also cc python-dev to see if anybody here is strongly in favor or against this inclusion. Put me down for a strong -1. The proposal would occasionally save a few keystokes but comes at the expense of giving Python a more Perlish look and a more arcane feel. One of the things I like about Python is that I can walk non-programmers through the code and explain what it does. The examples in PEP 505 look like a step in the wrong direction. They don't "look like Python" and make me feel like I have to decrypt the code to figure-out what it does. timeout ?? localtimeout ?? globaltimeout 'foo' in (None ?? ['foo', 'bar']) requestedquantity ?? defaultquantity * price name?.strip()[4:].upper() user?.firstname.upper()

Your examples have convinced me, -1 from me.



More information about the Python-Dev mailing list