Browse Source

oops, disable broken rich compare for now

rdb 13 năm trước cách đây
mục cha
commit
da44b3ae3b

+ 3 - 3
dtool/src/interrogate/interfaceMakerPythonNative.cxx

@@ -1742,9 +1742,9 @@ write_module_class(ostream &out, Object *obj) {
     out << "#endif\n";
     out << "#endif\n";
   }
   }
 
 
-  if (has_local_richcompare) {
-    out << "        Dtool_" << ClassName << ".As_PyTypeObject().tp_richcompare = &Dtool_RichCompare_" << ClassName << ";\n";
-  }
+//  if (has_local_richcompare) {
+//    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";