Commit e2301987 authored by Serhiy Storchaka's avatar Serhiy Storchaka

Fix minor docs markup errors.

parent 7f703380
......@@ -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:
......
......@@ -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.
......
......@@ -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
...
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment