STINNER Victor <victor.stinner at haypocalc.com> added the comment: PyUnicode_Check(op) checks op->ob_type->tp_flags & Py_TPFLAGS_UNICODE_SUBCLASS. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue9756> _______________________________________