TODO: remove + transfer over to get_special_method
(
&self,
obj: PyObjectRef,
method_name: &'static PyStrInterned,
)
| 1979 | |
| 1980 | // TODO: remove + transfer over to get_special_method |
| 1981 | pub(crate) fn get_method( |
| 1982 | &self, |
| 1983 | obj: PyObjectRef, |
| 1984 | method_name: &'static PyStrInterned, |
| 1985 | ) -> Option<PyResult> { |
| 1986 | let method = obj.get_class_attr(method_name)?; |
| 1987 | Some(self.call_if_get_descriptor(&method, obj)) |
| 1988 | } |
| 1989 | |
| 1990 | pub(crate) fn get_str_method(&self, obj: PyObjectRef, method_name: &str) -> Option<PyResult> { |
| 1991 | let method_name = self.ctx.interned_str(method_name)?; |
no test coverage detected