@@ -340,8 +340,8 @@ are always available. They are listed here in alphabetical order.
340340 It is needed to unambiguous :ref: `filter <warning-filter >` syntax warnings
341341 by module name.
342342
343- This function raises :exc: `SyntaxError ` if the compiled source is invalid,
344- and :exc: ` ValueError ` if the source contains null bytes .
343+ This function raises :exc: `SyntaxError ` or :exc: ` ValueError ` if the compiled
344+ source is invalid .
345345
346346 If you want to parse Python code into its AST representation, see
347347 :func: `ast.parse `.
@@ -606,16 +606,16 @@ are always available. They are listed here in alphabetical order.
606606 This function executes arbitrary code. Calling it with
607607 user-supplied input may lead to security vulnerabilities.
608608
609- The *expression * argument is parsed and evaluated as a Python expression
609+ The *source * argument is parsed and evaluated as a Python expression
610610 (technically speaking, a condition list) using the *globals * and *locals *
611611 mappings as global and local namespace. If the *globals * dictionary is
612612 present and does not contain a value for the key ``__builtins__ ``, a
613613 reference to the dictionary of the built-in module :mod: `builtins ` is
614- inserted under that key before *expression * is parsed. That way you can
614+ inserted under that key before *source * is parsed. That way you can
615615 control what builtins are available to the executed code by inserting your
616616 own ``__builtins__ `` dictionary into *globals * before passing it to
617617 :func: `eval `. If the *locals * mapping is omitted it defaults to the
618- *globals * dictionary. If both mappings are omitted, the expression is
618+ *globals * dictionary. If both mappings are omitted, the source is
619619 executed with the *globals * and *locals * in the environment where
620620 :func: `eval ` is called. Note, *eval() * will only have access to the
621621 :term: `nested scopes <nested scope> ` (non-locals) in the enclosing
0 commit comments