Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e2248f9e
Commit
e2248f9e
authored
Jan 24, 2011
by
Terry Reedy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #11000 ast.parse doc fix (r88172) + tix fix (r88170)
parent
0f2a61a1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
Doc/library/ast.rst
Doc/library/ast.rst
+2
-2
Doc/library/tkinter.tix.rst
Doc/library/tkinter.tix.rst
+2
-2
Lib/ast.py
Lib/ast.py
+4
-4
No files found.
Doc/library/ast.rst
View file @
e2248f9e
...
@@ -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)``.
...
...
Doc/library/tkinter.tix.rst
View file @
e2248f9e
...
@@ -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
T
ix
from
tkinter
import
t
ix
root
=
T
ix
.
Tk
()
root
=
t
ix
.
Tk
()
print
(
root
.
tix_configure
())
print
(
root
.
tix_configure
())
...
...
Lib/ast.py
View file @
e2248f9e
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment