Name
RExec
Synopsis
class RExec(hooks
=None,verbose
=False)
Returns an instance of the RExec
class, which
corresponds to a new restricted-execution environment, also known as
a sandbox. hooks
, if not
None
, lets you exert fine-grained control on
import
statements executed in the sandbox. This is
an advanced and rarely used functionality, and I do not cover it
further in this book. verbose
, if true,
causes additional debugging output to be sent to standard output for
many kinds of operations in the sandbox.
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.