Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ hex
Function
hex
crates/vm/src/stdlib/builtins.rs:674–678 ·
view source on GitHub ↗
(number: ArgIndex)
Source
from the content-addressed store, hash-verified
672
673
#[pyfunction]
674
fn hex(number: ArgIndex) -> String {
675
let number = number.into_int_ref();
676
let n = number.as_bigint();
677
format!(
"{n:#x}"
)
678
}
679
680
#[pyfunction]
681
fn id(obj: PyObjectRef) -> usize {
Callers
15
_pycodecs.py
File · 0.85
__repr__
Method · 0.85
__hash__
Method · 0.85
__repr__
Method · 0.85
__repr__
Method · 0.85
__repr__
Method · 0.85
_read_eof
Method · 0.85
pretty_flags
Function · 0.85
__repr__
Method · 0.85
winfo_pathname
Method · 0.85
build_task_table
Function · 0.85
_print_cycle_exception
Function · 0.85
Calls
2
into_int_ref
Method · 0.80
as_bigint
Method · 0.80
Tested by
12
test_openssl_version
Method · 0.68
__repr__
Method · 0.68
test_hex
Method · 0.68
__repr__
Method · 0.68
repr
Method · 0.68
__repr__
Method · 0.68
hexescape
Function · 0.68
testUnaryOps
Method · 0.68
_test_repr_or_str
Method · 0.68
test_load_ordinal_functions
Method · 0.68
test_asyncmock_defaults
Method · 0.68
test_magicmock_defaults
Method · 0.68