|
15 | 15 |
|
16 | 16 | -------------- |
17 | 17 |
|
18 | | -The :mod:`ast` module helps Python applications to process trees of the Python |
| 18 | +The :mod:`!ast` module helps Python applications to process trees of the Python |
19 | 19 | abstract syntax grammar. The abstract syntax itself might change with each |
20 | 20 | Python release; this module helps to find out programmatically what the current |
21 | 21 | grammar looks like. |
@@ -46,7 +46,7 @@ Node classes |
46 | 46 | This is the base of all AST node classes. The actual node classes are |
47 | 47 | derived from the :file:`Parser/Python.asdl` file, which is reproduced |
48 | 48 | :ref:`above <abstract-grammar>`. They are defined in the :mod:`!_ast` C |
49 | | - module and re-exported in :mod:`ast`. |
| 49 | + module and re-exported in :mod:`!ast`. |
50 | 50 |
|
51 | 51 | There is one class defined for each left-hand side symbol in the abstract |
52 | 52 | grammar (for example, :class:`ast.stmt` or :class:`ast.expr`). In addition, |
@@ -2217,10 +2217,10 @@ Async and await |
2217 | 2217 | occurrences of the same value (for example, :class:`ast.Add`). |
2218 | 2218 |
|
2219 | 2219 |
|
2220 | | -:mod:`ast` helpers |
2221 | | ------------------- |
| 2220 | +:mod:`!ast` helpers |
| 2221 | +------------------- |
2222 | 2222 |
|
2223 | | -Apart from the node classes, the :mod:`ast` module defines these utility functions |
| 2223 | +Apart from the node classes, the :mod:`!ast` module defines these utility functions |
2224 | 2224 | and classes for traversing abstract syntax trees: |
2225 | 2225 |
|
2226 | 2226 | .. function:: parse(source, filename='<unknown>', mode='exec', *, type_comments=False, feature_version=None, optimize=-1) |
@@ -2597,7 +2597,7 @@ Command-line usage |
2597 | 2597 |
|
2598 | 2598 | .. versionadded:: 3.9 |
2599 | 2599 |
|
2600 | | -The :mod:`ast` module can be executed as a script from the command line. |
| 2600 | +The :mod:`!ast` module can be executed as a script from the command line. |
2601 | 2601 | It is as simple as: |
2602 | 2602 |
|
2603 | 2603 | .. code-block:: sh |
|
0 commit comments