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
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to