29.11.17 15:01, Stephan Houben пише:
What about a more general:
A if <binary_relation> B else C
which would allow
A if is not None else C
but also e.g.
A if >= 1 else 0
This look the most "natural" to me. I.e. the least "unnatural". If we
even will introduce a new special syntax I will prefer this syntax.
The only disadvantage is that this will prevent introducing "angular
parenthesis" in future: A if <X, Y, Z> == B else C.
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/