Antoine Pitrou <pit...@free.fr> added the comment:

I understand this is indeed unintuitive. The reason list objects support
the C "mapping protocol" in 3.x is that it is how slicing of lists (and
tuples, for that matter) is implemented. Perhaps the documentation
should carry a warning about this.

Unfortunately, right now there is no easy way in C to check that an
object implements a given ABC.

----------
assignee:  -> georg.brandl
components: +Documentation, Interpreter Core -Library (Lib)
nosy: +georg.brandl, pitrou
priority: critical -> high

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

Reply via email to