|
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, |
@@ -2200,10 +2200,10 @@ Async and await |
2200 | 2200 | occurrences of the same value (for example, :class:`ast.Add`). |
2201 | 2201 |
|
2202 | 2202 |
|
2203 | | -:mod:`ast` helpers |
| 2203 | +:mod:`!ast` helpers |
2204 | 2204 | ------------------ |
2205 | 2205 |
|
2206 | | -Apart from the node classes, the :mod:`ast` module defines these utility functions |
| 2206 | +Apart from the node classes, the :mod:`!ast` module defines these utility functions |
2207 | 2207 | and classes for traversing abstract syntax trees: |
2208 | 2208 |
|
2209 | 2209 | .. function:: parse(source, filename='<unknown>', mode='exec', *, type_comments=False, feature_version=None, optimize=-1, module=None) |
@@ -2576,7 +2576,7 @@ Command-line usage |
2576 | 2576 |
|
2577 | 2577 | .. versionadded:: 3.9 |
2578 | 2578 |
|
2579 | | -The :mod:`ast` module can be executed as a script from the command line. |
| 2579 | +The :mod:`!ast` module can be executed as a script from the command line. |
2580 | 2580 | It is as simple as: |
2581 | 2581 |
|
2582 | 2582 | .. code-block:: sh |
|
0 commit comments