[issue5945] PyMapping_Check returns 1 for lists

Guido van Rossum report at bugs.python.org
Tue Jan 4 19:36:58 CET 2011

Guido van Rossum <guido at python.org> added the comment:

The question is, if PyMapping_Check() returns True, and a list is passed, will the code segfault or raise an exception?  A segfault would be unacceptable; an exception would be acceptable assuming that the code would have raised an exception anyway if PyMapping_Check() had returned False.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list