MCPcopy Index your code
hub / github.com/dgrunwald/rust-cpython / python

Method python

src/pythonrun.rs:128–130  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

126 /// Retrieves the marker type that proves that the GIL was acquired.
127 #[inline]
128 pub fn python(&self) -> Python<'_> {
129 unsafe { Python::assume_gil_acquired() }
130 }
131
132 /// Checks if the current thread holds the GIL.
133 ///

Callers 15

test_bytes_bufferFunction · 0.80
test_array_bufferFunction · 0.80
fmtMethod · 0.80
test_debug_stringFunction · 0.80
test_display_stringFunction · 0.80
test_compareFunction · 0.80
test_evalFunction · 0.80
test_parseFunction · 0.80
test_default_param_typeFunction · 0.80
test_default_valueFunction · 0.80
set_typeerrorFunction · 0.80
additionFunction · 0.80

Calls

no outgoing calls

Tested by 15

test_bytes_bufferFunction · 0.64
test_array_bufferFunction · 0.64
test_debug_stringFunction · 0.64
test_display_stringFunction · 0.64
test_compareFunction · 0.64
test_evalFunction · 0.64
test_parseFunction · 0.64
test_default_param_typeFunction · 0.64
test_default_valueFunction · 0.64
set_typeerrorFunction · 0.64
additionFunction · 0.64
test_lenFunction · 0.64