@@ -570,14 +570,14 @@ func lookup_maybe(self Object, attr string) Object {
570570 return res
571571}
572572
573- func lookup_method (self Object , attr string ) Object {
574- res := lookup_maybe (self , attr )
575- if res == nil {
576- // FIXME PyErr_SetObject(PyExc_AttributeError, attrid->object);
577- return ExceptionNewf (AttributeError , "'%s' object has no attribute '%s'" , self .Type ().Name , attr )
578- }
579- return res
580- }
573+ // func lookup_method(self Object, attr string) Object {
574+ // res := lookup_maybe(self, attr)
575+ // if res == nil {
576+ // // FIXME PyErr_SetObject(PyExc_AttributeError, attrid->object);
577+ // return ExceptionNewf(AttributeError, "'%s' object has no attribute '%s'", self.Type().Name, attr)
578+ // }
579+ // return res
580+ // }
581581
582582// Method resolution order algorithm C3 described in
583583// "A Monotonic Superclass Linearization for Dylan",
@@ -955,26 +955,26 @@ func add_subclass(base, t *Type) {
955955 // return result;
956956}
957957
958- func remove_subclass (base , t * Type ) {
959- // Py_ssize_t i;
960- // PyObject *list, *ref;
961-
962- // list = base->tp_subclasses;
963- // if (list == nil) {
964- // return;
965- // }
966- // assert(PyList_Check(list));
967- // i = PyList_GET_SIZE(list);
968- // while (--i >= 0) {
969- // ref = PyList_GET_ITEM(list, i);
970- // assert(PyWeakref_CheckRef(ref));
971- // if (PyWeakref_GET_OBJECT(ref) == (PyObject*)type) {
972- // /* this can't fail, right? */
973- // PySequence_DelItem(list, i);
974- // return;
975- // }
976- // }
977- }
958+ // func remove_subclass(base, t *Type) {
959+ // // Py_ssize_t i;
960+ // // PyObject *list, *ref;
961+ //
962+ // // list = base->tp_subclasses;
963+ // // if (list == nil) {
964+ // // return;
965+ // // }
966+ // // assert(PyList_Check(list));
967+ // // i = PyList_GET_SIZE(list);
968+ // // while (--i >= 0) {
969+ // // ref = PyList_GET_ITEM(list, i);
970+ // // assert(PyWeakref_CheckRef(ref));
971+ // // if (PyWeakref_GET_OBJECT(ref) == (PyObject*)type) {
972+ // // /* this can't fail, right? */
973+ // // PySequence_DelItem(list, i);
974+ // // return;
975+ // // }
976+ // // }
977+ // }
978978
979979// Ready the type for use
980980//
0 commit comments