Inplace assignment for "boolean or"?
25 Mar
2018
25 Mar
'18
5:23 p.m.
Hi, I find a common idiom in Python is: x = x or 'some other value' This is highly reminiscent of the problem inplace operators solve. Would it be a good idea to consider an inplace operator for this, perhaps: x or= 'some other value' ? Thanks, Cammil
2217
Age (days ago)
2217
Last active (days ago)
0 comments
1 participants
participants (1)
-
Cammil Taank