mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
reenable tp_richcompare (thanks David)
This commit is contained in:
parent
151b22ddf0
commit
a9014cf933
@ -1669,7 +1669,7 @@ write_module_class(ostream &out, Object *obj) {
|
|||||||
out << " " << args_cleanup << "\n";
|
out << " " << args_cleanup << "\n";
|
||||||
out << " if (PyErr_Occurred()) {\n";
|
out << " if (PyErr_Occurred()) {\n";
|
||||||
out << " return (PyObject *)NULL;\n";
|
out << " return (PyObject *)NULL;\n";
|
||||||
out << " }\n";
|
out << " }\n\n";
|
||||||
|
|
||||||
out << " Py_INCREF(Py_NotImplemented);\n";
|
out << " Py_INCREF(Py_NotImplemented);\n";
|
||||||
out << " return Py_NotImplemented;\n";
|
out << " return Py_NotImplemented;\n";
|
||||||
@ -1752,9 +1752,9 @@ write_module_class(ostream &out, Object *obj) {
|
|||||||
out << "#endif\n";
|
out << "#endif\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (has_local_richcompare) {
|
if (has_local_richcompare) {
|
||||||
// out << " Dtool_" << ClassName << ".As_PyTypeObject().tp_richcompare = &Dtool_RichCompare_" << ClassName << ";\n";
|
out << " Dtool_" << ClassName << ".As_PyTypeObject().tp_richcompare = &Dtool_RichCompare_" << ClassName << ";\n";
|
||||||
// }
|
}
|
||||||
|
|
||||||
if (has_local_repr) {
|
if (has_local_repr) {
|
||||||
out << " // __repr__\n";
|
out << " // __repr__\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user