Inplace assignment for "boolean or"?

March 25, 2018
2:23 a.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
2551
Age (days ago)
2551
Last active (days ago)
0 comments
1 participants
participants (1)
-
Cammil Taank