[issue5945] PyMapping_Check returns 1 for lists
Raymond Hettinger
report at bugs.python.org
Thu Jan 6 09:47:00 CET 2011
Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:
> Do you also advocate deprecating PySequence_Check()?
Perhaps just document PyMapping_Check() as being less informative than before (now it has false positives for sequences).
> As for the "clean C version of the ABCs",
> I'm afraid we could wait quite a bit
That may be true. I hope not. The ABCs were meant to solve exactly this problem. At this point, I would rather ignore the problem for 3.2 than to implement a less clean alternative.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5945>
_______________________________________
More information about the Python-bugs-list
mailing list