[Python-checkins] cpython (2.7): Fix minor docs markup errors.

serhiy.storchaka python-checkins at python.org
Sat Mar 14 20:35:06 CET 2015


https://hg.python.org/cpython/rev/b617790557b3
changeset: 94990:b617790557b3
branch: 2.7
parent: 94984:3b91d834160f
user: Serhiy Storchaka <storchaka at gmail.com>
date: Sat Mar 14 21:32:41 2015 +0200
summary:
 Fix minor docs markup errors.
files:
 Doc/library/decimal.rst | 2 +-
 Doc/library/profile.rst | 2 +-
 Doc/tutorial/datastructures.rst | 6 +++---
 3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/Doc/library/decimal.rst b/Doc/library/decimal.rst
--- a/Doc/library/decimal.rst
+++ b/Doc/library/decimal.rst
@@ -236,7 +236,7 @@
 Context() constructor. To make an alternate active, use the :func:`setcontext`
 function.
 
-In accordance with the standard, the :mod:`Decimal` module provides two ready to
+In accordance with the standard, the :mod:`decimal` module provides two ready to
 use standard contexts, :const:`BasicContext` and :const:`ExtendedContext`. The
 former is especially useful for debugging because many of the traps are
 enabled:
diff --git a/Doc/library/profile.rst b/Doc/library/profile.rst
--- a/Doc/library/profile.rst
+++ b/Doc/library/profile.rst
@@ -663,7 +663,7 @@
 
 pr = cProfile.Profile(your_integer_time_func, 0.001)
 
- As the :mod:`cProfile.Profile` class cannot be calibrated, custom timer
+ As the :class:`cProfile.Profile` class cannot be calibrated, custom timer
 functions should be used with care and should be as fast as possible. For
 the best results with a custom timer, it might be necessary to hard-code it
 in the C source of the internal :mod:`_lsprof` module.
diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst
--- a/Doc/tutorial/datastructures.rst
+++ b/Doc/tutorial/datastructures.rst
@@ -179,9 +179,9 @@
 
 ``filter(function, sequence)`` returns a sequence consisting of those items from
 the sequence for which ``function(item)`` is true. If *sequence* is a
-:class:`string` or :class:`tuple`, the result will be of the same type;
-otherwise, it is always a :class:`list`. For example, to compute a sequence of
-numbers divisible by 3 or 5::
+:class:`str`, :class:`unicode` or :class:`tuple`, the result will be of the
+same type; otherwise, it is always a :class:`list`. For example, to compute a
+sequence of numbers divisible by 3 or 5::
 
 >>> def f(x): return x % 3 == 0 or x % 5 == 0
 ...
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /