Commit e2248f9e authored by Terry Reedy's avatar Terry Reedy

Issue #11000 ast.parse doc fix (r88172) + tix fix (r88170)

parent 0f2a61a1
...@@ -107,9 +107,9 @@ The abstract grammar is currently defined as follows: ...@@ -107,9 +107,9 @@ The abstract grammar is currently defined as follows:
Apart from the node classes, :mod:`ast` module defines these utility functions Apart from the node classes, :mod:`ast` module defines these utility functions
and classes for traversing abstract syntax trees: and classes for traversing abstract syntax trees:
.. function:: parse(expr, filename='<unknown>', mode='exec') .. function:: parse(source, filename='<unknown>', mode='exec')
Parse an expression into an AST node. Equivalent to ``compile(expr, Parse the source into an AST node. Equivalent to ``compile(source,
filename, mode, ast.PyCF_ONLY_AST)``. filename, mode, ast.PyCF_ONLY_AST)``.
......
...@@ -503,8 +503,8 @@ Tix Commands ...@@ -503,8 +503,8 @@ Tix Commands
To view the current settings, the common usage is:: To view the current settings, the common usage is::
import Tix from tkinter import tix
root = Tix.Tk() root = tix.Tk()
print(root.tix_configure()) print(root.tix_configure())
......
...@@ -29,12 +29,12 @@ from _ast import * ...@@ -29,12 +29,12 @@ from _ast import *
from _ast import __version__ from _ast import __version__
def parse(expr, filename='<unknown>', mode='exec'): def parse(source, filename='<unknown>', mode='exec'):
""" """
Parse an expression into an AST node. Parse the source into an AST node.
Equivalent to compile(expr, filename, mode, PyCF_ONLY_AST). Equivalent to compile(source, filename, mode, PyCF_ONLY_AST).
""" """
return compile(expr, filename, mode, PyCF_ONLY_AST) return compile(source, filename, mode, PyCF_ONLY_AST)
def literal_eval(node_or_string): def literal_eval(node_or_string):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment