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

Skip to content

Commit da27fd2

Browse files
committed
Manually patched a few things that didn't get merged in, but should.
1 parent af554a0 commit da27fd2

16 files changed

Lines changed: 73 additions & 31 deletions

Doc/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
#
55

66
# You can set these variables from the command line.
7-
PYTHON ?= python
8-
SVNROOT ?= http://svn.python.org/projects
9-
SPHINXOPTS ?=
7+
PYTHON = python
8+
SVNROOT = http://svn.python.org/projects
9+
SPHINXOPTS =
1010

1111
ALLSPHINXOPTS = -b$(BUILDER) -dbuild/doctrees $(SPHINXOPTS) . build/$(BUILDER)
1212

@@ -55,7 +55,7 @@ web: build
5555
htmlhelp: BUILDER = htmlhelp
5656
htmlhelp: build
5757
@echo "Build finished; now you can run HTML Help Workshop with the" \
58-
"build/hhp/pydoc.hhp project file."
58+
"build/htmlhelp/pydoc.hhp project file."
5959

6060
clean:
6161
-rm -rf build/*

Doc/documenting/markup.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ As you can see, the module-specific markup consists of two directives, the
7979
The ``synopsis`` option should consist of one sentence describing the
8080
module's purpose -- it is currently only used in the Global Module Index.
8181

82+
The ``deprecated`` option can be given (with no value) to mark a module as
83+
deprecated; it will be designated as such in various locations then.
84+
8285
.. describe:: moduleauthor
8386

8487
The ``moduleauthor`` directive, which can appear multiple times, names the
@@ -333,6 +336,13 @@ the current module, or the built-in function of that name. In contrast,
333336
``:func:`foo.filter``` clearly refers to the ``filter`` function in the ``foo``
334337
module.
335338

339+
Normally, names in these roles are searched first without any further
340+
qualification, then with the current module name prepended, then with the
341+
current module and class name (if any) prepended. If you prefix the name with a
342+
dot, this order is reversed. For example, in the documentation of the
343+
:mod:`codecs` module, ``:func:`open``` always refers to the built-in function,
344+
while ``:func:`.open``` refers to :func:`codecs.open`.
345+
336346
A similar heuristic is used to determine whether the name is an attribute of
337347
the currently documented class.
338348

Doc/library/aifc.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ AIFF is Audio Interchange File Format, a format for storing digital audio
1616
samples in a file. AIFF-C is a newer version of the format that includes the
1717
ability to compress the audio data.
1818

19-
**Caveat:** Some operations may only work under IRIX; these will raise
20-
:exc:`ImportError` when attempting to import the :mod:`cl` module, which is only
21-
available on IRIX.
19+
.. warning::
20+
21+
Some operations may only work under IRIX; these will raise :exc:`ImportError`
22+
when attempting to import the :mod:`cl` module, which is only available on IRIX.
2223

2324
Audio files have a number of parameters that describe the audio data. The
2425
sampling rate or frame rate is the number of times per second the sound is

Doc/library/codeop.rst

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,13 @@ To do just the former:
4646
(``'single'``, the default) or as an expression (``'eval'``). Any other value
4747
will cause :exc:`ValueError` to be raised.
4848

49-
**Caveat:** It is possible (but not likely) that the parser stops parsing with a
50-
successful outcome before reaching the end of the source; in this case, trailing
51-
symbols may be ignored instead of causing an error. For example, a backslash
52-
followed by two newlines may be followed by arbitrary garbage. This will be
53-
fixed once the API for the parser is better.
49+
.. warning::
50+
51+
It is possible (but not likely) that the parser stops parsing with a
52+
successful outcome before reaching the end of the source; in this case,
53+
trailing symbols may be ignored instead of causing an error. For example,
54+
a backslash followed by two newlines may be followed by arbitrary garbage.
55+
This will be fixed once the API for the parser is better.
5456

5557

5658
.. class:: Compile()

Doc/library/fileinput.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,12 @@ and the backup file remains around; by default, the extension is ``'.bak'`` and
149149
it is deleted when the output file is closed. In-place filtering is disabled
150150
when standard input is read.
151151

152-
**Caveat:** The current implementation does not work for MS-DOS 8+3 filesystems.
152+
.. warning::
153+
154+
The current implementation does not work for MS-DOS 8+3 filesystems.
153155

154-
The two following opening hooks are provided by this module:
155156

157+
The two following opening hooks are provided by this module:
156158

157159
.. function:: hook_compressed(filename, mode)
158160

Doc/library/logging.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ instantiated directly, but always through the module-level function
536536
Finds the caller's source filename and line number. Returns the filename, line
537537
number and function name as a 3-element tuple.
538538

539-
.. versionchanged:: 2.5
539+
.. versionchanged:: 2.4
540540
The function name was added. In earlier versions, the filename and line number
541541
were returned as a 2-element tuple..
542542

Doc/library/marshal.rst

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,16 @@ and dictionaries are only supported as long as the values contained therein are
4242
themselves supported; and recursive lists and dictionaries should not be written
4343
(they will cause infinite loops).
4444

45-
**Caveat:** On machines where C's ``long int`` type has more than 32 bits (such
46-
as the DEC Alpha), it is possible to create plain Python integers that are
47-
longer than 32 bits. If such an integer is marshaled and read back in on a
48-
machine where C's ``long int`` type has only 32 bits, a Python long integer
49-
object is returned instead. While of a different type, the numeric value is the
50-
same. (This behavior is new in Python 2.2. In earlier versions, all but the
51-
least-significant 32 bits of the value were lost, and a warning message was
52-
printed.)
45+
.. warning::
46+
47+
On machines where C's ``long int`` type has more than 32 bits (such as the
48+
DEC Alpha), it is possible to create plain Python integers that are longer
49+
than 32 bits. If such an integer is marshaled and read back in on a machine
50+
where C's ``long int`` type has only 32 bits, a Python long integer object
51+
is returned instead. While of a different type, the numeric value is the
52+
same. (This behavior is new in Python 2.2. In earlier versions, all but the
53+
least-significant 32 bits of the value were lost, and a warning message was
54+
printed.)
5355

5456
There are functions that read/write files as well as functions operating on
5557
strings.

Doc/library/mimetools.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
.. module:: mimetools
66
:synopsis: Tools for parsing MIME-style message bodies.
7+
:deprecated:
78

89

910
.. deprecated:: 2.3

Doc/library/multifile.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
.. module:: multifile
66
:synopsis: Support for reading files which contain distinct parts, such as some MIME data.
7+
:deprecated:
78
.. sectionauthor:: Eric S. Raymond <[email protected]>
89

910

Doc/library/rfc822.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
.. module:: rfc822
66
:synopsis: Parse 2822 style mail messages.
7+
:deprecated:
78

89

910
.. deprecated:: 2.3

0 commit comments

Comments
 (0)