[issue9756] Crash with custom __getattribute__
STINNER Victor
report at bugs.python.org
Sat Sep 4 02:38:57 CEST 2010
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
I have different questions:
- Should we trust PyObject_IsInstance() or PyUnicode_Check() (because they give different results)?
- Should PyObject_IsInstance() and PyUnicode_Check() give the same result?
- Should we fix the segfault?
To fix the segfault, I suppose that we use a more strict validation on the input type. Eg. Use PyUnicode_Check() instead of PyObject_IsInstance()?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9756>
_______________________________________
More information about the Python-bugs-list
mailing list