[issue5945] PyMapping_Check returns 1 for lists
report at bugs.python.org
Thu May 14 21:33:40 CEST 2009
Antoine Pitrou <pitrou at free.fr> added the comment:
> Why did the list implementation get changed in Py3.x? Is it now
> necessary for any subscripting type to put the same method in both the
> sequence methods and mapping methods? Was this change necessary?
I think it's a case of foolish consistency. In py3k there are no opcodes
dedicated to slicing anymore, instead the slice object is passed to the
mapping's getitem method.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list