Andrei Kulakov <andrei....@gmail.com> added the comment:

One possibility for this being a breaking change is this scenario: some 
codebase may have logic that takes a list and uses a slice operation on it; in 
a rare circumstance the list is really a dict and a TypeError is caught 
upstream and dealt with; with this change it will no longer be caught/logged 
and the dict will be unexpectedly modified. It might also be hard to debug. 

I don't remember seeing such code but it's conceivable.

The change might still be worth it for performance improvement though - I'm not 
sure.

----------
nosy: +andrei.avk

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

Reply via email to