More small fixes.

This commit is contained in:
Georg Brandl 2007-08-13 19:58:15 +00:00
parent d8cd98a4c7
commit 4d962a12f7
10 changed files with 20 additions and 34 deletions

View File

@ -95,7 +95,7 @@ AST object.
testing node values. testing node values.
.. _creating asts: .. _creating-asts:
Creating AST Objects Creating AST Objects
-------------------- --------------------
@ -149,7 +149,7 @@ and ``'exec'`` forms.
maintained for backward compatibility. maintained for backward compatibility.
.. _converting asts: .. _converting-asts:
Converting AST Objects Converting AST Objects
---------------------- ----------------------
@ -210,7 +210,7 @@ numbering information.
tree. tree.
.. _querying asts: .. _querying-asts:
Queries on AST Objects 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. syntactic fragments may be supported in the future.
.. _ast errors: .. _ast-errors:
Exceptions and Error Handling 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. Refer to the descriptions of each function for detailed information.
.. _ast objects: .. _ast-objects:
AST Objects AST Objects
----------- -----------
@ -311,7 +311,7 @@ AST objects have the following methods:
Same as ``ast2tuple(ast, line_info)``. Same as ``ast2tuple(ast, line_info)``.
.. _ast examples: .. _ast-examples:
Examples Examples
-------- --------

View File

@ -148,7 +148,7 @@ One more support function is also defined:
1.5/sharedmodules', '/usr/local/lib/python1.5/tkinter']" 1.5/sharedmodules', '/usr/local/lib/python1.5/tkinter']"
.. _prettyprinter objects: .. _prettyprinter-objects:
PrettyPrinter Objects PrettyPrinter Objects
--------------------- ---------------------

View File

@ -83,7 +83,7 @@ The module defines the following functions:
Example Example
------- -------
.. _termios example: .. _termios-example:
Here's a function that prompts for a password with echoing turned off. Note the 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` ... technique using a separate :func:`tcgetattr` call and a :keyword:`try` ...

View File

@ -119,7 +119,7 @@ zipimporter Objects
Examples Examples
-------- --------
.. _zipimport examples: .. _zipimport-examples:
Here is an example that imports a module from a ZIP archive - note that the Here is an example that imports a module from a ZIP archive - note that the
:mod:`zipimport` module is not explicitly used. :: :mod:`zipimport` module is not explicitly used. ::

View File

@ -343,12 +343,7 @@ Keywords
The following identifiers are used as reserved words, or *keywords* of the The following identifiers are used as reserved words, or *keywords* of the
language, and cannot be used as ordinary identifiers. They must be spelled 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 and del from not while
as elif global or with as elif global or with
@ -358,8 +353,6 @@ exactly as written here:
continue finally is return continue finally is return
def for lambda try def for lambda try
.. % When adding keywords, use reswords.py for reformatting
.. versionchanged:: 2.4 .. versionchanged:: 2.4
:const:`None` became a constant and is now recognized by the compiler as a name :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 for the built-in object :const:`None`. Although it is not a keyword, you cannot

View File

@ -95,7 +95,7 @@ AST object.
testing node values. testing node values.
.. _creating asts: .. _creating-asts:
Creating AST Objects Creating AST Objects
-------------------- --------------------
@ -149,7 +149,7 @@ and ``'exec'`` forms.
maintained for backward compatibility. maintained for backward compatibility.
.. _converting asts: .. _converting-asts:
Converting AST Objects Converting AST Objects
---------------------- ----------------------
@ -212,7 +212,7 @@ numbering information.
tree. tree.
.. _querying asts: .. _querying-asts:
Queries on AST Objects 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. syntactic fragments may be supported in the future.
.. _ast errors: .. _ast-errors:
Exceptions and Error Handling 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. Refer to the descriptions of each function for detailed information.
.. _ast objects: .. _ast-objects:
AST Objects AST Objects
----------- -----------
@ -313,7 +313,7 @@ AST objects have the following methods:
Same as ``ast2tuple(ast, line_info)``. Same as ``ast2tuple(ast, line_info)``.
.. _ast examples: .. _ast-examples:
Examples Examples
-------- --------

View File

@ -148,7 +148,7 @@ One more support function is also defined:
1.5/sharedmodules', '/usr/local/lib/python1.5/tkinter']" 1.5/sharedmodules', '/usr/local/lib/python1.5/tkinter']"
.. _prettyprinter objects: .. _prettyprinter-objects:
PrettyPrinter Objects PrettyPrinter Objects
--------------------- ---------------------

View File

@ -83,7 +83,7 @@ The module defines the following functions:
Example Example
------- -------
.. _termios example: .. _termios-example:
Here's a function that prompts for a password with echoing turned off. Note the 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` ... technique using a separate :func:`tcgetattr` call and a :keyword:`try` ...

View File

@ -115,7 +115,7 @@ zipimporter Objects
Examples Examples
-------- --------
.. _zipimport examples: .. _zipimport-examples:
Here is an example that imports a module from a ZIP archive - note that the Here is an example that imports a module from a ZIP archive - note that the
:mod:`zipimport` module is not explicitly used. :: :mod:`zipimport` module is not explicitly used. ::

View File

@ -343,12 +343,7 @@ Keywords
The following identifiers are used as reserved words, or *keywords* of the The following identifiers are used as reserved words, or *keywords* of the
language, and cannot be used as ordinary identifiers. They must be spelled 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 and def for is raise
as del from lambda return as del from lambda return
@ -357,8 +352,6 @@ exactly as written here:
class except import pass with class except import pass with
continue finally in print yield continue finally in print yield
.. % When adding keywords, use reswords.py for reformatting
.. versionchanged:: 2.4 .. versionchanged:: 2.4
:const:`None` became a constant and is now recognized by the compiler as a name :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 for the built-in object :const:`None`. Although it is not a keyword, you cannot