Do you mean "is not"?

On Wed, Mar 27, 2019 at 3:24 PM Abdur-Rahmaan Janhangeer <> 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

Garanti sans virus.
Python-ideas mailing list
Code of Conduct:

Inada Naoki  <>