Closed epatters closed 5 years ago
Implement AST transformers for in-place mathematical operators, using a combination of in-place operator functions (operator.iadd, operator.imul, etc) and setter functions (setattr and operator.setitem).
operator.iadd
operator.imul
setattr
operator.setitem
Support syntax like:
y += 1
x[::2] += 1
df.x *= 0.5
Follow up to #12.
Implement AST transformers for in-place mathematical operators, using a combination of in-place operator functions (
operator.iadd
,operator.imul
, etc) and setter functions (setattr
andoperator.setitem
).Support syntax like:
y += 1
x[::2] += 1
df.x *= 0.5
Follow up to #12.