[issue5945] PyMapping_Check returns 1 for lists

Serhiy Storchaka report at bugs.python.org
Mon Mar 6 02:50:42 EST 2017


Serhiy Storchaka added the comment:

Proposed wording doesn't looks much informative to me. Maybe just say that PyMapping_Check() also returns 1 for sequences that support slicing? And recommend `PyMapping_Check() && !PySequence_Check()` for true mapping test?

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5945>
_______________________________________


More information about the Python-bugs-list mailing list