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

Method to_callable

crates/vm/src/protocol/callable.rs:10–12  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

8impl PyObject {
9 #[inline]
10 pub fn to_callable(&self) -> Option<PyCallable<'_>> {
11 PyCallable::new(self)
12 }
13
14 #[inline]
15 pub fn is_callable(&self) -> bool {

Callers 8

trigger_signalsFunction · 0.80
try_from_objectMethod · 0.80
is_callableMethod · 0.80
call_with_argsMethod · 0.80
vectorcallMethod · 0.80
sub_implMethod · 0.80
start_new_threadFunction · 0.80
start_joinable_threadFunction · 0.80

Calls 1

newFunction · 0.85

Tested by

no test coverage detected