Do you mean "is not"?

On Wed, Mar 27, 2019 at 3:24 PM Abdur-Rahmaan Janhangeer <arj.python@gmail.com> wrote:
Suppose i have 

(lambda x: x if x != None else '')(someVar)

returning an empty string if none

but, if "not" was allowed

(lambda x: x if x not None else '')(someVar)

it might have been more elegant

PROPOSAL: Allow "not" in lambda expressions

--
Abdur-Rahmaan Janhangeer
Mauritius

Garanti sans virus. www.avast.com
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/


--
Inada Naoki  <songofacandy@gmail.com>