@@ -382,15 +382,13 @@ \section{Built-in Functions \label{built-in-funcs}}
382382 compiled passing \code {'eval'} as the \var {kind} argument.
383383
384384 Hints: dynamic execution of statements is supported by the
385- \function {exec()} function. Execution of statements from a file is
386- supported by the \function {execfile()} function. The
385+ \function {exec()} function. The
387386 \function {globals()} and \function {locals()} functions returns the
388387 current global and local dictionary, respectively, which may be
389388 useful to pass around for use by \function {eval()} or
390- \function {execfile ()}.
389+ \function {exec ()}.
391390\end {funcdesc }
392391
393-
394392\begin {funcdesc }{exec}{object\optional {, globals\optional {, locals}}}
395393 This function supports dynamic execution of Python code.
396394 \var {object} must be either a string, an open file object, or
@@ -425,31 +423,6 @@ \section{Built-in Functions \label{built-in-funcs}}
425423 argument to \function {exec()}.}
426424\end {funcdesc }
427425
428- \begin {funcdesc }{execfile}{filename\optional {, globals\optional {, locals}}}
429- This function is similar to the \function {exec()} function, but parses a
430- file given by the file name instead of a string. It
431- is different from the \keyword {import} statement in that it does not
432- use the module administration --- it reads the file unconditionally
433- and does not create a new module.
434-
435- The arguments are a file name and two optional dictionaries. The file is
436- parsed and evaluated as a sequence of Python statements (similarly to a
437- module) using the \var {globals} and \var {locals} dictionaries as global and
438- local namespace. If provided, \var {locals} can be any mapping object.
439- \versionchanged [formerly \var {locals} was required to be a dictionary]{2.4}
440- If the \var {locals} dictionary is omitted it defaults to the \var {globals}
441- dictionary. If both dictionaries are omitted, the expression is executed in
442- the environment where \function {execfile()} is called. The return value is
443- \code {None}.
444-
445- \warning {The default \var {locals} act as described for function
446- \function {locals()} below: modifications to the default \var {locals}
447- dictionary should not be attempted. Pass an explicit \var {locals}
448- dictionary if you need to see effects of the code on \var {locals} after
449- function \function {execfile()} returns. \function {execfile()} cannot
450- be used reliably to modify a function's locals.}
451- \end {funcdesc }
452-
453426\begin {funcdesc }{file}{filename\optional {, mode\optional {, bufsize}}}
454427 Constructor function for the \class {file} type, described further
455428 in section~\ref {bltin-file-objects }, `` \ulink {File
0 commit comments