Allow not in lambda expressions

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 <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Garanti sans virus. www.avast.com <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On 2019-03-26 23:29, Abdur-Rahmaan Janhangeer wrote:
What you describe is already possible, you just have to use the "is not" operator, just as you would in any other expression. -- Brendan Barnwell "Do not follow where the path may lead. Go, instead, where there is no path, and leave a trail." --author unknown

On 2019-03-26 23:29, Abdur-Rahmaan Janhangeer wrote:
What you describe is already possible, you just have to use the "is not" operator, just as you would in any other expression. -- Brendan Barnwell "Do not follow where the path may lead. Go, instead, where there is no path, and leave a trail." --author unknown
participants (3)
-
Abdur-Rahmaan Janhangeer
-
Brendan Barnwell
-
Inada Naoki