diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-03-14 19:32:41 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-03-14 19:32:41 (GMT) |
commit | 251aede2f23f13b33dc4fc28bb18a5f416fad345 (patch) | |
tree | eb1be0680d27e861aa915a84072bd45f83b4c16f /Doc | |
parent | dbbc07c2ec28bf877eba86ffa9f13c85dc2af33e (diff) | |
download | cpython-251aede2f23f13b33dc4fc28bb18a5f416fad345.zip cpython-251aede2f23f13b33dc4fc28bb18a5f416fad345.tar.gz cpython-251aede2f23f13b33dc4fc28bb18a5f416fad345.tar.bz2 |
Fix minor docs markup errors.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/decimal.rst | 2 | ||||
-rw-r--r-- | Doc/library/profile.rst | 2 | ||||
-rw-r--r-- | Doc/tutorial/datastructures.rst | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/decimal.rst b/Doc/library/decimal.rst index d5ba4f0..564d10c 100644 --- a/Doc/library/decimal.rst +++ b/Doc/library/decimal.rst @@ -236,7 +236,7 @@ For more advanced work, it may be useful to create alternate contexts using the 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 index 0fb1489..c7007a6 100644 --- a/Doc/library/profile.rst +++ b/Doc/library/profile.rst @@ -663,7 +663,7 @@ you are using :class:`profile.Profile` or :class:`cProfile.Profile`, 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 index 2d79a00..89589bc 100644 --- a/Doc/tutorial/datastructures.rst +++ b/Doc/tutorial/datastructures.rst @@ -179,9 +179,9 @@ There are three built-in functions that are very useful when used with lists: ``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 ... |