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

Nikolaus Rath Nikolaus at rath.org
Wed Sep 30 20:27:18 CEST 2015

On Sep 30 2015, Greg Ewing <greg.ewing-F+z8Qja7x9Xokq/tPzqvJg at public.gmane.org> 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).

The idea of using a named operator instead of some symbol has merit
though. What about "a orn b" or "a orin b" (*or* *i*f *n*one)? The
latter might be especially appealing to Tolkien readers :-).


GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

             »Time flies like an arrow, fruit flies like a Banana.«

More information about the Python-ideas mailing list