Addition of a .= operator

Greg Ewing greg.ewing at canterbury.ac.nz
Sat May 20 20:23:30 EDT 2023


On 21/05/23 9:18 am, Richard Damon wrote:
> This just can't happen (as far as I can figure) for .= unless the object 
> is defining something weird for the inplace version of the operation, 

Indeed. There are clear use cases for overriding +=, but it's hard to
think of one for this. So it would just be syntactic sugar, which is
harder to justify.

-- 
Greg


More information about the Python-list mailing list