MCPcopy Index your code
hub / github.com/RustPython/RustPython / get_str_method

Method get_str_method

crates/vm/src/vm/mod.rs:1990–1993  ·  view source on GitHub ↗
(&self, obj: PyObjectRef, method_name: &str)

Source from the content-addressed store, hash-verified

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)?;
1992 self.get_method(obj, method_name)
1993 }
1994
1995 #[inline]
1996 pub(crate) fn eval_breaker_tripped(&self) -> bool {

Callers 2

finditerMethod · 0.80
read_allMethod · 0.80

Calls 2

interned_strMethod · 0.80
get_methodMethod · 0.45

Tested by

no test coverage detected