sys.builtins

Here are the examples of the python api sys.builtins taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

Example 1

Project: imagrium Source File: test_sys_jy.py
def set_globally():
    import sys
    import test.sys_jy_test_module # used as a probe

    # can't use 'foo', test_with wants to have that undefined
    sys.builtins['test_sys_jy_foo'] = 42

Example 2

Project: imagrium Source File: test_sys_jy.py
Function: set_shadow
def set_shadow():
    import sys
    sys.builtins['fum'] = 24