_PyType_LookupRef: look up a name through the MRO without setting an exception.
(&self, name: &Py<PyStr>, vm: &VirtualMachine)
| 1084 | |
| 1085 | /// _PyType_LookupRef: look up a name through the MRO without setting an exception. |
| 1086 | pub fn lookup_ref(&self, name: &Py<PyStr>, vm: &VirtualMachine) -> Option<PyObjectRef> { |
| 1087 | let interned_name = vm.ctx.interned_str(name)?; |
| 1088 | self.find_name_in_mro(interned_name) |
| 1089 | } |
| 1090 | |
| 1091 | pub fn get_super_attr(&self, attr_name: &'static PyStrInterned) -> Option<PyObjectRef> { |
| 1092 | self.mro.read()[1..] |
no test coverage detected