[issue5945] PyMapping_Check returns 1 for lists
Antoine Pitrou
report at bugs.python.org
Tue Jan 4 19:47:33 CET 2011
Antoine Pitrou <pitrou at free.fr> added the comment:
Exceptions seem to be raised (for code that can be exercised in Python), but not very obvious ones:
>>> eval("x", {}, [])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<string>", line 1, in <module>
TypeError: list indices must be integers, not str
$ ./python -c "import os; os.execle('/bin/ls', 'ls', [])"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/antoine/py3k/__svn__/Lib/os.py", line 320, in execle
execve(file, args[:-1], env)
AttributeError: values
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5945>
_______________________________________
More information about the Python-bugs-list
mailing list