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

Skip to content

Commit 5879d41

Browse files
committed
Merged revisions 70578,70599,70641-70642,70650,70660-70661,70674,70691,70697-70698,70700,70704 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r70578 | benjamin.peterson | 2009-03-23 22:24:56 -0500 (Mon, 23 Mar 2009) | 1 line this is better written using assertRaises ........ r70599 | benjamin.peterson | 2009-03-25 16:42:51 -0500 (Wed, 25 Mar 2009) | 1 line this can be slightly less ugly ........ r70641 | guilherme.polo | 2009-03-27 16:43:08 -0500 (Fri, 27 Mar 2009) | 3 lines Adjusted _tkinter to compile without warnings when WITH_THREAD is not defined (part of issue #5035) ........ r70642 | georg.brandl | 2009-03-27 19:48:48 -0500 (Fri, 27 Mar 2009) | 1 line Fix typo. ........ r70650 | benjamin.peterson | 2009-03-28 14:16:10 -0500 (Sat, 28 Mar 2009) | 1 line give os.symlink and os.link() better parameter names #5564 ........ r70660 | georg.brandl | 2009-03-28 14:52:58 -0500 (Sat, 28 Mar 2009) | 1 line Switch to fixed Sphinx version. ........ r70661 | georg.brandl | 2009-03-28 14:57:36 -0500 (Sat, 28 Mar 2009) | 2 lines Add section numbering to some of the larger subdocuments. ........ r70674 | guilherme.polo | 2009-03-29 05:19:05 -0500 (Sun, 29 Mar 2009) | 1 line Typo fix. ........ r70691 | raymond.hettinger | 2009-03-29 13:51:11 -0500 (Sun, 29 Mar 2009) | 1 line Make life easier for non-CPython implementations. ........ r70697 | benjamin.peterson | 2009-03-29 16:22:35 -0500 (Sun, 29 Mar 2009) | 1 line this has been fixed since 2.6 (I love removing these) ........ r70698 | benjamin.peterson | 2009-03-29 16:31:05 -0500 (Sun, 29 Mar 2009) | 1 line thanks to guido's bytecode verifier, this is fixed ........ r70700 | benjamin.peterson | 2009-03-29 16:50:14 -0500 (Sun, 29 Mar 2009) | 1 line use the awesome new status iterator ........ r70704 | benjamin.peterson | 2009-03-29 21:49:32 -0500 (Sun, 29 Mar 2009) | 1 line there's actually three methods here #5600 ........
1 parent 5550365 commit 5879d41

17 files changed

Lines changed: 50 additions & 77 deletions

File tree

Doc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ help:
3131
checkout:
3232
@if [ ! -d tools/sphinx ]; then \
3333
echo "Checking out Sphinx..."; \
34-
svn checkout $(SVNROOT)/doctools/trunk/sphinx tools/sphinx; \
34+
svn checkout $(SVNROOT)/external/Sphinx-0.6.1/sphinx tools/sphinx; \
3535
fi
3636
@if [ ! -d tools/docutils ]; then \
3737
echo "Checking out Docutils..."; \

Doc/distutils/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ very little overhead for build/release/install mechanics.
1616

1717
.. toctree::
1818
:maxdepth: 2
19+
:numbered:
1920

2021
introduction.rst
2122
setupscript.rst

Doc/documenting/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ to write reStructuredText if you're not so inclined; plain text contributions
2323
are more than welcome as well.
2424

2525
.. toctree::
26+
:numbered:
2627

2728
intro.rst
2829
style.rst

Doc/extending/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ For a detailed description of the whole Python/C API, see the separate
2626

2727
.. toctree::
2828
:maxdepth: 2
29+
:numbered:
2930

3031
extending.rst
3132
newtypes.rst

Doc/library/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ the `Python Package Index <http://pypi.python.org/pypi>`_.
3838

3939
.. toctree::
4040
:maxdepth: 2
41+
:numbered:
4142

4243
intro.rst
4344
functions.rst

Doc/library/os.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -796,9 +796,10 @@ Files and Directories
796796
function will not follow symbolic links. Availability: Unix.
797797

798798

799-
.. function:: link(src, dst)
799+
.. function:: link(source, link_name)
800800

801-
Create a hard link pointing to *src* named *dst*. Availability: Unix.
801+
Create a hard link pointing to *source* named *link_name*. Availability:
802+
Unix.
802803

803804

804805
.. function:: listdir(path)
@@ -1078,9 +1079,10 @@ Files and Directories
10781079
:attr:`f_flag`, :attr:`f_namemax`. Availability: Unix.
10791080

10801081

1081-
.. function:: symlink(src, dst)
1082+
.. function:: symlink(source, link_name)
10821083

1083-
Create a symbolic link pointing to *src* named *dst*. Availability: Unix.
1084+
Create a symbolic link pointing to *source* named *link_name*. Availability:
1085+
Unix.
10841086

10851087

10861088
.. function:: unlink(path)

Doc/library/string.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ does an index lookup using :func:`__getitem__`.
218218
Some simple format string examples::
219219

220220
"First, thou shalt count to {0}" # References first positional argument
221+
"Bring me a {}" # Implicitly references the first positional argument
221222
"My quest is {name}" # References keyword argument 'name'
222223
"Weight in tons {0.weight}" # 'weight' attribute of first positional arg
223224
"Units destroyed: {players[0]}" # First element of keyword argument 'players'.

Doc/library/webbrowser.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ Here are some simple examples::
167167
Browser Controller Objects
168168
--------------------------
169169

170-
Browser controllers provide these methods which parallel two of the module-level
171-
convenience functions:
170+
Browser controllers provide these methods which parallel three of the
171+
module-level convenience functions:
172172

173173

174174
.. method:: controller.open(url[, new[, autoraise=1]])

Doc/reference/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ interfaces available to C/C++ programmers in detail.
1818

1919
.. toctree::
2020
:maxdepth: 2
21+
:numbered:
2122

2223
introduction.rst
2324
lexical_analysis.rst

Doc/tools/sphinxext/pyspecific.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ def get_target_uri(self, docname, typ=None):
7272

7373
def write(self, *ignored):
7474
writer = TextWriter(self)
75-
for label in self.status_iterator(pydoc_topic_labels, 'building topics... '):
75+
for label in self.status_iterator(pydoc_topic_labels,
76+
'building topics... ',
77+
length=len(pydoc_topic_labels)):
7678
if label not in self.env.labels:
7779
self.warn('label %r not in documentation' % label)
7880
continue

0 commit comments

Comments
 (0)