(zelf: &Py<Self>, name: &Py<PyStr>, vm: &VirtualMachine)
| 1186 | |
| 1187 | impl GetAttr for PyBoundMethod { |
| 1188 | fn getattro(zelf: &Py<Self>, name: &Py<PyStr>, vm: &VirtualMachine) -> PyResult { |
| 1189 | let class_attr = vm |
| 1190 | .ctx |
| 1191 | .interned_str(name) |
| 1192 | .and_then(|attr_name| zelf.get_class_attr(attr_name)); |
| 1193 | if let Some(obj) = class_attr { |
| 1194 | return vm.call_if_get_descriptor(&obj, zelf.to_owned().into()); |
| 1195 | } |
| 1196 | zelf.function.get_attr(name, vm) |
| 1197 | } |
| 1198 | } |
| 1199 | |
| 1200 | impl GetDescriptor for PyBoundMethod { |
nothing calls this directly
no test coverage detected