# Pastebin HnmXd1TI // PYSIDE-535: PyPy does not differentiate builtin methods and methods. // But they differ because they have no __module__ attribute. int PyMethod_Check(PyObject *op) { return PyPyMethod_Check(op) && PyObject_HasAttr(op, Shiboken::PyMagicName::module()); }