Vajrasky Kok added the comment: Here is the updated patch for type module based on Zachary's comment.
However, I can not convert this method. {"__subclasshook__", object_subclasshook, METH_CLASS | METH_VARARGS, object_subclasshook_doc}, static PyObject * object_subclasshook(PyObject *cls, PyObject *args) { Py_RETURN_NOTIMPLEMENTED; } >>> type.__subclasshook__() NotImplemented >>> type.__subclasshook__('cutecat') NotImplemented >>> type.__subclasshook__('cutecat', 1, []) NotImplemented ---------- Added file: http://bugs.python.org/file33746/clinic_typeobject_v2.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20185> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com