<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 10 July 2013 07:09, Joshua Landau <span dir="ltr"><<a href="mailto:joshua@landau.ws" target="_blank">joshua@landau.ws</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div id=":273" style="overflow:hidden">I agree it's not totally backward-compatible, but AFAICT that's only<br>
for broken code. __iadd__ should always just be a faster, in-place<br>
__add__ and so this change should never cause problems in properly<br>
written code. That makes it anything but a semantic change. It's the<br>
same way people discuss the order of __hash__ calls on updates to code<br>
but no-one calls it a *semantics* change.<br>
<div class="im"></div></div></blockquote></div><br>It will stop working for tuples (which have no __iadd__. Or were you suggesting trying __iadd__ and falling back to __add__ (that's more complex, obviously, and I don't think I'd assume it's "trivial" extra complexity) or special-caseing tuples (that's even more complex, and doesn't solve the problem for other iimmutables)?</div>
<div class="gmail_extra"><br></div><div class="gmail_extra" style>Paul</div></div>