mirror of
https://github.com/python/cpython.git
synced 2025-11-14 07:49:28 +00:00
exec is a statement, not a function!
This commit is contained in:
parent
445cfd339c
commit
7b0c9d8a07
1 changed files with 3 additions and 3 deletions
|
|
@ -4,10 +4,10 @@
|
||||||
|
|
||||||
|
|
||||||
This module contains the \class{RExec} class, which supports
|
This module contains the \class{RExec} class, which supports
|
||||||
\method{r_exec()}, \method{r_eval()}, \method{r_execfile()}, and
|
\method{r_eval()}, \method{r_execfile()}, \method{r_exec()}, and
|
||||||
\method{r_import()} methods, which are restricted versions of the standard
|
\method{r_import()} methods, which are restricted versions of the standard
|
||||||
Python functions \method{exec()}, \method{eval()}, \method{execfile()}, and
|
Python functions \method{eval()}, \method{execfile()} and
|
||||||
the \keyword{import} statement.
|
the \keyword{exec} and \keyword{import} statements.
|
||||||
Code executed in this restricted environment will
|
Code executed in this restricted environment will
|
||||||
only have access to modules and functions that are deemed safe; you
|
only have access to modules and functions that are deemed safe; you
|
||||||
can subclass \class{RExec} to add or remove capabilities as desired.
|
can subclass \class{RExec} to add or remove capabilities as desired.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue