21 Sep
2015
21 Sep
'15
8:44 p.m.
On 9/21/2015 11:28 AM, Ron Adam wrote:
We could add a "not None" specific boolean operators just by appending ! to them.
while! x: <--> while x != None: if! x: <--> if x != None:
a or! b <--> b if a != None else a a and! b <--> a if a != None else b not! x <--> x if x != None else None
'!= None' should be 'is not None' in all examples. Since 'is not None' is a property of the object, so I think any abbreviation should be applied to the object, not the operator. "while x!", etcetera -- Terry Jan Reedy