Nick Coghlan added the comment:

Ouch :P

Perhaps the least-incompatible fix would be to switch to returning the proxy if 
the object returned is the proxied object (which would do the right thing for 
proxies to mutable objects), while preserving the current behaviour when the 
in-place operation returns a new object?

That behaviour is still somewhat broken, but there's no obviously non-broken 
behaviour in that case, and this broadly preserves compatibility with the 
status quo.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19070>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to