Skip to main content

uses_magic_variable_access

Function uses_magic_variable_access 

Source
pub fn uses_magic_variable_access<F>(body: &[Stmt], is_builtin: F) -> bool
where F: Fn(&str) -> bool,
Expand description

Return true if the body uses locals(), globals(), vars(), eval().

Accepts a closure that determines whether a given name (e.g., "list") is a Python builtin.