Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 502d9a5

Browse files
committed
Merged revisions 74207 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r74207 | georg.brandl | 2009-07-26 16:19:57 +0200 (So, 26 Jul 2009) | 1 line #6577: fix (hopefully) all links to builtin instead of module/class-specific objects. ........
1 parent 22b3431 commit 502d9a5

24 files changed

Lines changed: 84 additions & 81 deletions

Doc/library/2to3.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,9 @@ and off individually. They are described here in more detail.
246246
247247
.. 2to3fixer:: next
248248
249-
Converts the use of iterator's :meth:`next` methods to the :func:`next`
250-
function. It also renames :meth:`next` methods to :meth:`~object.__next__`.
249+
Converts the use of iterator's :meth:`~iterator.next` methods to the
250+
:func:`next` function. It also renames :meth:`next` methods to
251+
:meth:`~object.__next__`.
251252
252253
.. 2to3fixer:: nonzero
253254

Doc/library/aifc.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Module :mod:`aifc` defines the following function:
4848
time how many samples you are going to write in total and use
4949
:meth:`writeframesraw` and :meth:`setnframes`.
5050

51-
Objects returned by :func:`open` when a file is opened for reading have the
51+
Objects returned by :func:`.open` when a file is opened for reading have the
5252
following methods:
5353

5454

@@ -133,7 +133,7 @@ following methods:
133133
Close the AIFF file. After calling this method, the object can no longer be
134134
used.
135135

136-
Objects returned by :func:`open` when a file is opened for writing have all the
136+
Objects returned by :func:`.open` when a file is opened for writing have all the
137137
above methods, except for :meth:`readframes` and :meth:`setpos`. In addition
138138
the following methods exist. The :meth:`get\*` methods can only be called after
139139
the corresponding :meth:`set\*` methods have been called. Before the first

Doc/library/audioop.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ The module defines the following variables and functions:
222222
u-LAW encoding always uses 8 bits samples, so *width* refers only to the sample
223223
width of the output fragment here.
224224

225-
Note that operations such as :func:`mul` or :func:`max` make no distinction
225+
Note that operations such as :func:`.mul` or :func:`.max` make no distinction
226226
between mono and stereo fragments, i.e. all samples are treated equal. If this
227227
is a problem the stereo fragment should be split into two mono fragments first
228228
and recombined later. Here is an example of how to do that::

Doc/library/cgi.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ commas::
133133
If a field represents an uploaded file, accessing the value via the
134134
:attr:`value` attribute or the :func:`getvalue` method reads the entire file in
135135
memory as a string. This may not be what you want. You can test for an uploaded
136-
file by testing either the :attr:`filename` attribute or the :attr:`file`
137-
attribute. You can then read the data at leisure from the :attr:`file`
136+
file by testing either the :attr:`filename` attribute or the :attr:`!file`
137+
attribute. You can then read the data at leisure from the :attr:`!file`
138138
attribute::
139139

140140
fileitem = form["userfile"]
@@ -154,15 +154,15 @@ field will be set to the value -1.
154154
The file upload draft standard entertains the possibility of uploading multiple
155155
files from one field (using a recursive :mimetype:`multipart/\*` encoding).
156156
When this occurs, the item will be a dictionary-like :class:`FieldStorage` item.
157-
This can be determined by testing its :attr:`type` attribute, which should be
157+
This can be determined by testing its :attr:`!type` attribute, which should be
158158
:mimetype:`multipart/form-data` (or perhaps another MIME type matching
159159
:mimetype:`multipart/\*`). In this case, it can be iterated over recursively
160160
just like the top-level form object.
161161

162162
When a form is submitted in the "old" format (as the query string or as a single
163163
data part of type :mimetype:`application/x-www-form-urlencoded`), the items will
164164
actually be instances of the class :class:`MiniFieldStorage`. In this case, the
165-
:attr:`list`, :attr:`file`, and :attr:`filename` attributes are always ``None``.
165+
:attr:`!list`, :attr:`!file`, and :attr:`filename` attributes are always ``None``.
166166

167167
A form submitted via POST that also has a query string will contain both
168168
:class:`FieldStorage` and :class:`MiniFieldStorage` items.

Doc/library/csv.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The :mod:`csv` module defines the following functions:
5050

5151
Return a reader object which will iterate over lines in the given *csvfile*.
5252
*csvfile* can be any object which supports the :term:`iterator` protocol and returns a
53-
string each time its :meth:`next` method is called --- file objects and list
53+
string each time its :meth:`!next` method is called --- file objects and list
5454
objects are both suitable. If *csvfile* is a file object, it should be opened
5555
with ``newline=''``. [#]_ An optional
5656
*dialect* parameter can be given which is used to define a set of parameters

Doc/library/curses.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ The module :mod:`curses` defines the following functions:
183183

184184
.. function:: filter()
185185

186-
The :func:`filter` routine, if used, must be called before :func:`initscr` is
186+
The :func:`.filter` routine, if used, must be called before :func:`initscr` is
187187
called. The effect is that, during those calls, LINES is set to 1; the
188188
capabilities clear, cup, cud, cud1, cuu1, cuu, vpa are disabled; and the home
189189
string is set to the value of cr. The effect is that the cursor is confined to

Doc/library/dbm.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
modified by the prevailing umask).
6262

6363

64-
The object returned by :func:`open` supports most of the same functionality as
64+
The object returned by :func:`.open` supports most of the same functionality as
6565
dictionaries; keys and their corresponding values can be stored, retrieved, and
6666
deleted, and the :keyword:`in` operator and the :meth:`keys` method are
6767
available. Key and values are always stored as bytes. This means that when

Doc/library/decimal.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ Decimal objects
584584

585585
.. method:: max_mag(other[, context])
586586

587-
Similar to the :meth:`max` method, but the comparison is done using the
587+
Similar to the :meth:`.max` method, but the comparison is done using the
588588
absolute values of the operands.
589589

590590
.. method:: min(other[, context])
@@ -596,7 +596,7 @@ Decimal objects
596596

597597
.. method:: min_mag(other[, context])
598598

599-
Similar to the :meth:`min` method, but the comparison is done using the
599+
Similar to the :meth:`.min` method, but the comparison is done using the
600600
absolute values of the operands.
601601

602602
.. method:: next_minus([context])

Doc/library/io.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ buffered text interface to a buffered raw stream
3939
stream for text.
4040

4141
Argument names are not part of the specification, and only the arguments of
42-
:func:`open` are intended to be used as keyword arguments.
42+
:func:`.open` are intended to be used as keyword arguments.
4343

4444

4545
Module Interface
@@ -48,7 +48,7 @@ Module Interface
4848
.. data:: DEFAULT_BUFFER_SIZE
4949

5050
An int containing the default buffer size used by the module's buffered I/O
51-
classes. :func:`open` uses the file's blksize (as obtained by
51+
classes. :func:`.open` uses the file's blksize (as obtained by
5252
:func:`os.stat`) if possible.
5353

5454
.. function:: open(file, mode='r', buffering=None, encoding=None, errors=None, newline=None, closefd=True)
@@ -142,8 +142,8 @@ Module Interface
142142
closed. If a filename is given *closefd* has no effect and must be ``True``
143143
(the default).
144144

145-
The type of file object returned by the :func:`open` function depends on the
146-
mode. When :func:`open` is used to open a file in a text mode (``'w'``,
145+
The type of file object returned by the :func:`.open` function depends on the
146+
mode. When :func:`.open` is used to open a file in a text mode (``'w'``,
147147
``'r'``, ``'wt'``, ``'rt'``, etc.), it returns a subclass of
148148
:class:`TextIOBase` (specifically :class:`TextIOWrapper`). When used to open
149149
a file in a binary mode with buffering, the returned class is a subclass of
@@ -256,7 +256,7 @@ I/O Base Classes
256256
most *limit* bytes will be read.
257257

258258
The line terminator is always ``b'\n'`` for binary files; for text files,
259-
the *newlines* argument to :func:`open` can be used to select the line
259+
the *newlines* argument to :func:`.open` can be used to select the line
260260
terminator(s) recognized.
261261

262262
.. method:: readlines(hint=-1)

Doc/library/locale.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -432,8 +432,8 @@ The :mod:`locale` module defines the following exception and functions:
432432

433433
.. data:: LC_NUMERIC
434434

435-
Locale category for formatting numbers. The functions :func:`format`,
436-
:func:`atoi`, :func:`atof` and :func:`str` of the :mod:`locale` module are
435+
Locale category for formatting numbers. The functions :func:`.format`,
436+
:func:`atoi`, :func:`atof` and :func:`.str` of the :mod:`locale` module are
437437
affected by that category. All other numeric formatting operations are not
438438
affected.
439439

@@ -491,7 +491,7 @@ document that your module is not compatible with non-\ ``C`` locale settings.
491491

492492
The only way to perform numeric operations according to the locale is to use the
493493
special functions defined by this module: :func:`atof`, :func:`atoi`,
494-
:func:`format`, :func:`str`.
494+
:func:`.format`, :func:`.str`.
495495

496496
There is no way to perform case conversions and character classifications
497497
according to the locale. For (Unicode) text strings these are done according

0 commit comments

Comments
 (0)