module documentation
Undocumented
Class |
|
A prerequisite to building or installing a distribution |
Function | extract |
Extract the constant value of 'symbol' from 'code' |
Function | find |
Just like 'imp.find_module()', but with package support |
Function | get |
Find 'module' by searching 'paths', and extract 'symbol' |
Function | maybe |
Undocumented |
Function | _update |
Patch the globals to remove the objects not available on some platforms. |
Extract the constant value of 'symbol' from 'code' If the name 'symbol' is bound to a constant value by the Python code object 'code', return that value. If 'symbol' is bound to an expression, return 'default'. Otherwise, return 'None'. Return value is based on the first assignment to 'symbol'. 'symbol' must be a global, or at least a non-"fast" local in the code block. That is, only 'STORE_NAME' and 'STORE_GLOBAL' opcodes are checked, and 'symbol' must be present in 'code.co_names'.