[issue5945] PyMapping_Check returns 1 for lists
Guido van Rossum
report at bugs.python.org
Tue Jan 4 16:55:32 CET 2011
Guido van Rossum <guido at python.org> added the comment:
> In the meantime, would it be reasonable to add the moral equivalent
> of `hasattr(type(op), 'items')` to PyMapping_Check()?
That all depends on what it is used for. Which is hard to say without someone following more of the links that Raymond posted.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5945>
_______________________________________
More information about the Python-bugs-list
mailing list