compile_restricted_function(p, body, name, filename, globalize=None)
Compiles a restricted code object for a function.
The function can be reconstituted using the new
module:
new.function(,
The globalize argument, if specified, is a list of variable names to be treated as globals (code is generated as if each name in the list appeared in a global statement at the top of the function).