Commits

Anonymous committed 4a85a94

A few more short fixes.

  • Participants
  • Parent commits 858fc99

Comments (0)

Files changed (21)

Doc-26/c-api/refcounting.rst

    .. versionadded:: 2.4
 
 The following functions are for runtime dynamic embedding of Python:
-:cfunc:`Py_IncRef(PyObject \*o)`, :cfunc:`Py_DecRef(PyObject \*o)`. They are
+``Py_IncRef(PyObject \*o)``, `Py_DecRef(PyObject \*o)``. They are
 simply exported function versions of :cfunc:`Py_XINCREF` and
 :cfunc:`Py_XDECREF`, respectively.
 

Doc-26/library/cgi.rst

    print "Hello, world!"
 
 
+.. _using-the-cgi-module:
+
 Using the cgi module
 --------------------
 
-.. _using the cgi module:
-
 Begin by writing ``import cgi``.  Do not use ``from cgi import *`` --- the
 module defines all sorts of names for its own use or for backward compatibility
 that you don't want in your namespace.
 this module, drop me a note.
 
 
+.. _functions-in-cgi-module:
+
 Functions
 ---------
 
-.. _functions in cgi module:
-
 These are useful if you want more control, or if you want to employ some of the
 algorithms implemented in this module in other circumstances.
 

Doc-26/library/fl.rst

 :cfunc:`foreground` and to the FORMS routine :cfunc:`fl_init`.
 
 
+.. _fl-functions:
+
 Functions Defined in Module :mod:`fl`
 -------------------------------------
 
-.. _fl functions:
-
 Module :mod:`fl` defines the following functions.  For more information about
 what they do, see the description of the equivalent C function in the FORMS
 documentation:

Doc-26/library/pickle.rst

 is for tuples and strings).  Instances of a new-style type :class:`C` are
 created using ::
 
-   obj = C.__new__(C, \*args)
+   obj = C.__new__(C, *args)
 
 
 where *args* is the result of calling :meth:`__getnewargs__` on the original

Doc-26/library/profile.rst

 support.  ...but I'd appreciate the feedback.
 
 
+.. _profiler-introduction:
+
 Introduction to the profilers
 =============================
 
-.. _profiler introduction:
-
 .. index::
    single: deterministic profiling
    single: profiling, deterministic
 (implemented using :mod:`cmd`) and interactive help.
 
 
+.. _deterministic-profiling:
+
 What Is Deterministic Profiling?
 ================================
 
-.. _deterministic profiling:
-
 :dfn:`Deterministic profiling` is meant to reflect the fact that all *function
 call*, *function return*, and *exception* events are monitored, and precise
 timings are made for the intervals between these events (during which time the
 your results will "less often" show up as negative in profile statistics.
 
 
+.. _profiler-extensions:
+
 Extensions --- Deriving Better Profilers
 ========================================
 
-.. _profiler extensions:
-
 The :class:`Profile` class of both modules, :mod:`profile` and :mod:`cProfile`,
 were written so that derived classes could be developed to extend the profiler.
 The details are not described here, as doing this successfully requires an

Doc-26/library/re.rst

    re.compile("^a", re.M).search("ba", 1)   # fails; no preceding \n
 
 
+.. _contents-of-module-re:
+
 Module Contents
 ---------------
 
-.. _contents of module re:
-
 The module defines several functions, constants, and an exception. Some of the
 functions are simplified versions of the full featured methods for compiled
 regular expressions.  Most non-trivial applications always use the compiled

Doc-26/library/signal.rst

    descriptions in the :mod:`inspect` module).
 
 
+.. _signal-example:
+
 Example
 -------
 
-.. _signal example:
-
 Here is a minimal example program. It uses the :func:`alarm` function to limit
 the time spent waiting to open a file; this is useful if the file is for a
 serial device that may not be turned on, which would normally cause the

Doc-26/library/stdtypes.rst

 Bit-string Operations on Integer Types
 --------------------------------------
 
-.. _bit-string operations:
+.. _bit-string-operations:
 
 Plain and long integer types support additional operations that make sense only
 for bit-strings.  Negative numbers are treated as their 2's complement value
 Classes and Class Instances
 ---------------------------
 
-.. _classes and instances:
-
 See :ref:`objects` and :ref:`class` for these.
 
 

Doc-26/library/urllib.rst

    environment.
 
 
+.. _urllib-examples:
+
 Examples
 --------
 
-.. _urllib examples:
-
 Here is an example session that uses the ``GET`` method to retrieve a URL
 containing parameters::
 

Doc-26/reference/lexical_analysis.rst

 definitions:
 
 .. productionlist::
-   identifier: (`letter`|"_") (`letter` | `digit` | "_")\*
+   identifier: (`letter`|"_") (`letter` | `digit` | "_")*
    letter: `lowercase` | `uppercase`
    lowercase: "a"..."z"
    uppercase: "A"..."Z"

Doc-26/tutorial/interpreter.rst

 
    $ chmod +x myscript.py
 
-.. % $ <-- bow to font-lock
-
 
 Source Code Encoding
 --------------------
 best way to do it is to put one more special comment line right after the ``#!``
 line to define the source file encoding::
 
-   # -\*- coding: encoding -\*- 
+   # -*- coding: encoding -*- 
 
 
 With that declaration, all characters in the source file will be treated as

Doc-3k/c-api/refcounting.rst

    .. versionadded:: 2.4
 
 The following functions are for runtime dynamic embedding of Python:
-:cfunc:`Py_IncRef(PyObject \*o)`, :cfunc:`Py_DecRef(PyObject \*o)`. They are
+``Py_IncRef(PyObject \*o)``, `Py_DecRef(PyObject \*o)``. They are
 simply exported function versions of :cfunc:`Py_XINCREF` and
 :cfunc:`Py_XDECREF`, respectively.
 

Doc-3k/library/cgi.rst

    print "Hello, world!"
 
 
+.. _using-the-cgi-module:
+
 Using the cgi module
 --------------------
 
-.. _using the cgi module:
-
 Begin by writing ``import cgi``.  Do not use ``from cgi import *`` --- the
 module defines all sorts of names for its own use or for backward compatibility
 that you don't want in your namespace.
 this module, drop me a note.
 
 
+.. _functions-in-cgi-module:
+
 Functions
 ---------
 
-.. _functions in cgi module:
-
 These are useful if you want more control, or if you want to employ some of the
 algorithms implemented in this module in other circumstances.
 

Doc-3k/library/pickle.rst

 is for tuples and strings).  Instances of a new-style type :class:`C` are
 created using ::
 
-   obj = C.__new__(C, \*args)
+   obj = C.__new__(C, *args)
 
 
 where *args* is the result of calling :meth:`__getnewargs__` on the original

Doc-3k/library/profile.rst

 support.  ...but I'd appreciate the feedback.
 
 
+.. _profiler-introduction:
+
 Introduction to the profilers
 =============================
 
-.. _profiler introduction:
-
 .. index::
    single: deterministic profiling
    single: profiling, deterministic
 (implemented using :mod:`cmd`) and interactive help.
 
 
+.. _deterministic-profiling:
+
 What Is Deterministic Profiling?
 ================================
 
-.. _deterministic profiling:
-
 :dfn:`Deterministic profiling` is meant to reflect the fact that all *function
 call*, *function return*, and *exception* events are monitored, and precise
 timings are made for the intervals between these events (during which time the
 your results will "less often" show up as negative in profile statistics.
 
 
+.. _profiler-extensions:
+
 Extensions --- Deriving Better Profilers
 ========================================
 
-.. _profiler extensions:
-
 The :class:`Profile` class of both modules, :mod:`profile` and :mod:`cProfile`,
 were written so that derived classes could be developed to extend the profiler.
 The details are not described here, as doing this successfully requires an

Doc-3k/library/re.rst

    re.compile("^a", re.M).search("ba", 1)   # fails; no preceding \n
 
 
+.. _contents-of-module-re:
+
 Module Contents
 ---------------
 
-.. _contents of module re:
-
 The module defines several functions, constants, and an exception. Some of the
 functions are simplified versions of the full featured methods for compiled
 regular expressions.  Most non-trivial applications always use the compiled

Doc-3k/library/signal.rst

    descriptions in the :mod:`inspect` module).
 
 
+.. _signal-example:
+
 Example
 -------
 
-.. _signal example:
-
 Here is a minimal example program. It uses the :func:`alarm` function to limit
 the time spent waiting to open a file; this is useful if the file is for a
 serial device that may not be turned on, which would normally cause the

Doc-3k/library/stdtypes.rst

 Bit-string Operations on Integer Types
 --------------------------------------
 
-.. _bit-string operations:
+.. _bit-string-operations:
 
 Plain and long integer types support additional operations that make sense only
 for bit-strings.  Negative numbers are treated as their 2's complement value
 Classes and Class Instances
 ---------------------------
 
-.. _classes and instances:
-
 See :ref:`objects` and :ref:`class` for these.
 
 

Doc-3k/library/urllib.rst

    environment.
 
 
+.. _urllib-examples:
+
 Examples
 --------
 
-.. _urllib examples:
-
 Here is an example session that uses the ``GET`` method to retrieve a URL
 containing parameters::
 

Doc-3k/reference/lexical_analysis.rst

 definitions:
 
 .. productionlist::
-   identifier: (`letter`|"_") (`letter` | `digit` | "_")\*
+   identifier: (`letter`|"_") (`letter` | `digit` | "_")*
    letter: `lowercase` | `uppercase`
    lowercase: "a"..."z"
    uppercase: "A"..."Z"

Doc-3k/tutorial/interpreter.rst

 
    $ chmod +x myscript.py
 
-.. % $ <-- bow to font-lock
-
 
 Source Code Encoding
 --------------------
 best way to do it is to put one more special comment line right after the ``#!``
 line to define the source file encoding::
 
-   # -\*- coding: encoding -\*- 
+   # -*- coding: encoding -*- 
 
 
 With that declaration, all characters in the source file will be treated as