Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ callable
Function
callable
crates/vm/src/stdlib/builtins.rs:82–84 ·
view source on GitHub ↗
(obj: PyObjectRef)
Source
from the content-addressed store, hash-verified
80
81
#[pyfunction]
82
fn callable(obj: PyObjectRef) -> bool {
83
obj.is_callable()
84
}
85
86
#[pyfunction]
87
fn chr(i: PyIntRef, vm: &VirtualMachine) -> PyResult<CodePoint> {
Callers
15
_partial_new
Function · 0.85
__setstate__
Method · 0.85
lru_cache
Function · 0.85
__init__
Method · 0.85
_callable_postfix
Method · 0.85
pickle
Function · 0.85
constructor
Function · 0.85
set_servername_callback
Method · 0.85
_signature_is_functionlike
Function · 0.85
_signature_from_callable
Function · 0.85
register_archive_format
Function · 0.85
_check_unpack_options
Function · 0.85
Calls
1
is_callable
Method · 0.80
Tested by
15
test_basic_examples
Method · 0.68
assertRaisesMessage
Method · 0.68
test_callable
Method · 0.68
raises
Method · 0.68
test_callable
Method · 0.68
get_exception
Method · 0.68
get_exception
Method · 0.68
test_subclassing
Method · 0.68
test_module_attributes
Method · 0.68
test_name_non_collision_02
Method · 0.68
assertRaisesTermiosError
Method · 0.68
assert_hmac_extra_cases
Method · 0.68