On 20/07/18 14:06, Michel Desmoulin wrote:
Proposal a __very__ dumbed down "try" expression
====================================================
variable = try Expression as not sentinel [else default]
I like this approach. I think it should play nice with the ternary if,
though I haven't actually checked the grammar.
My only doubt is how much value there is to having a sentinel other than
"None".
--
Rhodri James *-* Kynesim Ltd
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/