mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
More small fixes.
This commit is contained in:
parent
d8cd98a4c7
commit
4d962a12f7
@ -95,7 +95,7 @@ AST object.
|
||||
testing node values.
|
||||
|
||||
|
||||
.. _creating asts:
|
||||
.. _creating-asts:
|
||||
|
||||
Creating AST Objects
|
||||
--------------------
|
||||
@ -149,7 +149,7 @@ and ``'exec'`` forms.
|
||||
maintained for backward compatibility.
|
||||
|
||||
|
||||
.. _converting asts:
|
||||
.. _converting-asts:
|
||||
|
||||
Converting AST Objects
|
||||
----------------------
|
||||
@ -210,7 +210,7 @@ numbering information.
|
||||
tree.
|
||||
|
||||
|
||||
.. _querying asts:
|
||||
.. _querying-asts:
|
||||
|
||||
Queries on AST Objects
|
||||
----------------------
|
||||
@ -240,7 +240,7 @@ determine if an AST was created from source code via :func:`expr` or
|
||||
syntactic fragments may be supported in the future.
|
||||
|
||||
|
||||
.. _ast errors:
|
||||
.. _ast-errors:
|
||||
|
||||
Exceptions and Error Handling
|
||||
-----------------------------
|
||||
@ -269,7 +269,7 @@ cases, these exceptions carry all the meaning normally associated with them.
|
||||
Refer to the descriptions of each function for detailed information.
|
||||
|
||||
|
||||
.. _ast objects:
|
||||
.. _ast-objects:
|
||||
|
||||
AST Objects
|
||||
-----------
|
||||
@ -311,7 +311,7 @@ AST objects have the following methods:
|
||||
Same as ``ast2tuple(ast, line_info)``.
|
||||
|
||||
|
||||
.. _ast examples:
|
||||
.. _ast-examples:
|
||||
|
||||
Examples
|
||||
--------
|
||||
|
@ -148,7 +148,7 @@ One more support function is also defined:
|
||||
1.5/sharedmodules', '/usr/local/lib/python1.5/tkinter']"
|
||||
|
||||
|
||||
.. _prettyprinter objects:
|
||||
.. _prettyprinter-objects:
|
||||
|
||||
PrettyPrinter Objects
|
||||
---------------------
|
||||
|
@ -83,7 +83,7 @@ The module defines the following functions:
|
||||
Example
|
||||
-------
|
||||
|
||||
.. _termios example:
|
||||
.. _termios-example:
|
||||
|
||||
Here's a function that prompts for a password with echoing turned off. Note the
|
||||
technique using a separate :func:`tcgetattr` call and a :keyword:`try` ...
|
||||
|
@ -119,7 +119,7 @@ zipimporter Objects
|
||||
Examples
|
||||
--------
|
||||
|
||||
.. _zipimport examples:
|
||||
.. _zipimport-examples:
|
||||
|
||||
Here is an example that imports a module from a ZIP archive - note that the
|
||||
:mod:`zipimport` module is not explicitly used. ::
|
||||
|
@ -343,12 +343,7 @@ Keywords
|
||||
|
||||
The following identifiers are used as reserved words, or *keywords* of the
|
||||
language, and cannot be used as ordinary identifiers. They must be spelled
|
||||
exactly as written here:
|
||||
|
||||
.. %
|
||||
.. %
|
||||
|
||||
::
|
||||
exactly as written here::
|
||||
|
||||
and del from not while
|
||||
as elif global or with
|
||||
@ -358,8 +353,6 @@ exactly as written here:
|
||||
continue finally is return
|
||||
def for lambda try
|
||||
|
||||
.. % When adding keywords, use reswords.py for reformatting
|
||||
|
||||
.. versionchanged:: 2.4
|
||||
:const:`None` became a constant and is now recognized by the compiler as a name
|
||||
for the built-in object :const:`None`. Although it is not a keyword, you cannot
|
||||
|
@ -95,7 +95,7 @@ AST object.
|
||||
testing node values.
|
||||
|
||||
|
||||
.. _creating asts:
|
||||
.. _creating-asts:
|
||||
|
||||
Creating AST Objects
|
||||
--------------------
|
||||
@ -149,7 +149,7 @@ and ``'exec'`` forms.
|
||||
maintained for backward compatibility.
|
||||
|
||||
|
||||
.. _converting asts:
|
||||
.. _converting-asts:
|
||||
|
||||
Converting AST Objects
|
||||
----------------------
|
||||
@ -212,7 +212,7 @@ numbering information.
|
||||
tree.
|
||||
|
||||
|
||||
.. _querying asts:
|
||||
.. _querying-asts:
|
||||
|
||||
Queries on AST Objects
|
||||
----------------------
|
||||
@ -242,7 +242,7 @@ determine if an AST was created from source code via :func:`expr` or
|
||||
syntactic fragments may be supported in the future.
|
||||
|
||||
|
||||
.. _ast errors:
|
||||
.. _ast-errors:
|
||||
|
||||
Exceptions and Error Handling
|
||||
-----------------------------
|
||||
@ -271,7 +271,7 @@ cases, these exceptions carry all the meaning normally associated with them.
|
||||
Refer to the descriptions of each function for detailed information.
|
||||
|
||||
|
||||
.. _ast objects:
|
||||
.. _ast-objects:
|
||||
|
||||
AST Objects
|
||||
-----------
|
||||
@ -313,7 +313,7 @@ AST objects have the following methods:
|
||||
Same as ``ast2tuple(ast, line_info)``.
|
||||
|
||||
|
||||
.. _ast examples:
|
||||
.. _ast-examples:
|
||||
|
||||
Examples
|
||||
--------
|
||||
|
@ -148,7 +148,7 @@ One more support function is also defined:
|
||||
1.5/sharedmodules', '/usr/local/lib/python1.5/tkinter']"
|
||||
|
||||
|
||||
.. _prettyprinter objects:
|
||||
.. _prettyprinter-objects:
|
||||
|
||||
PrettyPrinter Objects
|
||||
---------------------
|
||||
|
@ -83,7 +83,7 @@ The module defines the following functions:
|
||||
Example
|
||||
-------
|
||||
|
||||
.. _termios example:
|
||||
.. _termios-example:
|
||||
|
||||
Here's a function that prompts for a password with echoing turned off. Note the
|
||||
technique using a separate :func:`tcgetattr` call and a :keyword:`try` ...
|
||||
|
@ -115,7 +115,7 @@ zipimporter Objects
|
||||
Examples
|
||||
--------
|
||||
|
||||
.. _zipimport examples:
|
||||
.. _zipimport-examples:
|
||||
|
||||
Here is an example that imports a module from a ZIP archive - note that the
|
||||
:mod:`zipimport` module is not explicitly used. ::
|
||||
|
@ -343,12 +343,7 @@ Keywords
|
||||
|
||||
The following identifiers are used as reserved words, or *keywords* of the
|
||||
language, and cannot be used as ordinary identifiers. They must be spelled
|
||||
exactly as written here:
|
||||
|
||||
.. %
|
||||
.. %
|
||||
|
||||
::
|
||||
exactly as written here::
|
||||
|
||||
and def for is raise
|
||||
as del from lambda return
|
||||
@ -357,8 +352,6 @@ exactly as written here:
|
||||
class except import pass with
|
||||
continue finally in print yield
|
||||
|
||||
.. % When adding keywords, use reswords.py for reformatting
|
||||
|
||||
.. versionchanged:: 2.4
|
||||
:const:`None` became a constant and is now recognized by the compiler as a name
|
||||
for the built-in object :const:`None`. Although it is not a keyword, you cannot
|
||||
|
Loading…
Reference in New Issue
Block a user