mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Fix minor docs markup errors.
This commit is contained in:
commit
fbd011dd49
2 changed files with 2 additions and 2 deletions
|
@ -263,7 +263,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:
|
||||
|
|
|
@ -638,7 +638,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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue