[Python-Dev] PyObject_IsInstance is dangerous (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Mon May 18 14:41:48 CEST 2015
- Previous message (by thread): [Python-Dev] PyObject_IsInstance is dangerous
- Next message (by thread): [Python-Dev] Gcode path
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Serhiy Storchaka wrote:
May be modify PyObjectIsInstance so that it will never return true if layouts are not compatible?
That wouldn't be a good idea, since PyObject_IsInstance is meant to reflect the behaviour of python's isinstance() function, which doesn't care about C layouts.
-- Greg
- Previous message (by thread): [Python-Dev] PyObject_IsInstance is dangerous
- Next message (by thread): [Python-Dev] Gcode path
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]