Skip to main content

current_code

Function current_code 

Source
pub fn current_code() -> Option<PyRef<PyCode>>
Expand description

Read the code object from the topmost frame on this thread’s chain. Returns None if the chain is empty.