Skip to main content

current_globals

Function current_globals 

Source
pub fn current_globals() -> Option<PyDictRef>
Expand description

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