Vedran Čačić <ved...@gmail.com> added the comment: Well, just reverse the order of -= in second statement. If you write =-, it will magically work. ;-)
But in the general case, sometimes introducing temporary variables is the simplest solution. The alternative would be to implement pointwise -= for tuples, which would be extremely confusing since they already implement += with a completely different semantics. ---------- nosy: +veky _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43701> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com