[Python-ideas] PEP 505 (None coalescing operators) thoughts

Andrew Barnert abarnert at yahoo.com
Wed Sep 30 01:57:39 CEST 2015

LOn Sep 29, 2015, at 16:27, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Emile van Sebille wrote:
>> x = foo nor 'foo was None'
> Cute, but unfortunately it conflicts with established
> usage of the word 'nor', which would suggest that
> a nor b == not (a or b).

Agreed. If this is going to be a keyword rather than a symbol, it really has to read like English, or at least like abbreviated English, with the right meaning--something like "foo, falling back to 'foo was None' if needed".  Something that reads like English with a completely different meaning is a bad idea.

More information about the Python-ideas mailing list