Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:
> Inplace operation is expected to occur only at the time when > the second operand is evaluated. That expectation does not match the implementation and it likely isn't possible to get that to work. In-place operations on immutable objects necessarily create a new object, so the operation isn't as atomic as one might expect (the lookup and the assignment are two separate steps). ---------- nosy: +rhettinger _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38817> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com