[issue5945] PyMapping_Check returns 1 for lists
Raymond Hettinger
report at bugs.python.org
Tue Jan 4 04:22:19 CET 2011
Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:
Here's a code search link:
http://www.google.com/codesearch?as_q=PyMapping_Check
And here's how it currently used internal to the Python codebase:
$ ack --cc PyMapping_CheckInclude/abstract.h
1125: PyAPI_FUNC(int) PyMapping_Check(PyObject *o);
Modules/posixmodule.c
3585: if (!PyMapping_Check(env)) {
3764: if (!PyMapping_Check(env)) {
3950: if (!PyMapping_Check(env)) {
Objects/abstract.c
1987:PyMapping_Check(PyObject *o)
Objects/frameobject.c
605: (locals != NULL && !PyMapping_Check(locals))) {
PC/_subprocess.c
340: if (! PyMapping_Check(environment)) {
Python/bltinmodule.c
700: if (locals != Py_None && !PyMapping_Check(locals)) {
705: PyErr_SetString(PyExc_TypeError, PyMapping_Check(globals) ?
794: if (!PyMapping_Check(locals)) {
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5945>
_______________________________________
More information about the Python-bugs-list
mailing list