Skip to main content

understand_python2

Function understand_python2 

Source
pub fn understand_python2(code: &str) -> Understanding
Expand description

Whether code that Python 2 runs is read whole: the same subset as understand for Language::Python, but with only sys and errno to import. time and itertools are shared files of Python 2’s lib-dynload, which the import path reaches after the folder the code runs in, and builtins is no built-in module there (it is __builtin__), so a file of that name in the folder would run.