Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e2301987
Commit
e2301987
authored
Mar 14, 2015
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix minor docs markup errors.
parent
7f703380
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
Doc/library/decimal.rst
Doc/library/decimal.rst
+1
-1
Doc/library/profile.rst
Doc/library/profile.rst
+1
-1
Doc/tutorial/datastructures.rst
Doc/tutorial/datastructures.rst
+3
-3
No files found.
Doc/library/decimal.rst
View file @
e2301987
...
@@ -236,7 +236,7 @@ For more advanced work, it may be useful to create alternate contexts using the
...
@@ -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`
Context() constructor. To make an alternate active, use the :func:`setcontext`
function.
function.
In accordance with the standard, the :mod:`
D
ecimal` module provides two ready to
In accordance with the standard, the :mod:`
d
ecimal` module provides two ready to
use standard contexts, :const:`BasicContext` and :const:`ExtendedContext`. The
use standard contexts, :const:`BasicContext` and :const:`ExtendedContext`. The
former is especially useful for debugging because many of the traps are
former is especially useful for debugging because many of the traps are
enabled:
enabled:
...
...
Doc/library/profile.rst
View file @
e2301987
...
@@ -663,7 +663,7 @@ you are using :class:`profile.Profile` or :class:`cProfile.Profile`,
...
@@ -663,7 +663,7 @@ you are using :class:`profile.Profile` or :class:`cProfile.Profile`,
pr = cProfile.Profile(your_integer_time_func, 0.001)
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
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
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.
in the C source of the internal :mod:`_lsprof` module.
...
...
Doc/tutorial/datastructures.rst
View file @
e2301987
...
@@ -179,9 +179,9 @@ There are three built-in functions that are very useful when used with lists:
...
@@ -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
``filter(function, sequence)`` returns a sequence consisting of those items from
the sequence for which ``function(item)`` is true. If *sequence* is a
the sequence for which ``function(item)`` is true. If *sequence* is a
:class:`str
ing` or :class:`tuple`, the result will be of the same type;
:class:`str
`, :class:`unicode` or :class:`tuple`, the result will be of the
otherwise, it is always a :class:`list`. For example, to compute a sequence of
same type; otherwise, it is always a :class:`list`. For example, to compute a
numbers divisible by 3 or 5::
sequence of
numbers divisible by 3 or 5::
>>> def f(x): return x % 3 == 0 or x % 5 == 0
>>> def f(x): return x % 3 == 0 or x % 5 == 0
...
...
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment