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
5a4b03dd
Commit
5a4b03dd
authored
Jan 11, 2013
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Plain Diff
#16154: merge with 3.2.
parents
b2b2252a
40507921
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
8 deletions
+11
-8
Doc/library/colorsys.rst
Doc/library/colorsys.rst
+4
-4
Doc/library/filecmp.rst
Doc/library/filecmp.rst
+2
-2
Doc/library/math.rst
Doc/library/math.rst
+2
-0
Doc/library/string.rst
Doc/library/string.rst
+2
-2
Misc/ACKS
Misc/ACKS
+1
-0
No files found.
Doc/library/colorsys.rst
View file @
5a4b03dd
...
...
@@ -58,7 +58,7 @@ The :mod:`colorsys` module defines the following functions:
Example::
>>> import colorsys
>>> colorsys.rgb_to_hsv(
.3, .4, .2
)
(0.
2
5, 0.5, 0.4)
>>> colorsys.hsv_to_rgb(0.
2
5, 0.5, 0.4)
(0.
3, 0.4, 0.2
)
>>> colorsys.rgb_to_hsv(
0.2, 0.4, 0.4
)
(0.5, 0.5, 0.4)
>>> colorsys.hsv_to_rgb(0.5, 0.5, 0.4)
(0.
2, 0.4, 0.4
)
Doc/library/filecmp.rst
View file @
5a4b03dd
...
...
@@ -176,6 +176,6 @@ recursively through two directories to show common different files::
... for sub_dcmp in dcmp.subdirs.values():
... print_diff_files(sub_dcmp)
...
>>> dcmp = dircmp('dir1', 'dir2')
>>> print_diff_files(dcmp)
>>> dcmp = dircmp('dir1', 'dir2')
# doctest: +SKIP
>>> print_diff_files(dcmp)
# doctest: +SKIP
Doc/library/math.rst
View file @
5a4b03dd
...
...
@@ -77,6 +77,8 @@ Number-theoretic and representation functions
.. function:: fsum(iterable)
.. testsetup::
>>> from math import fsum
Return an accurate floating point sum of values in the iterable. Avoids
loss of precision by tracking multiple intermediate partial sums::
...
...
Doc/library/string.rst
View file @
5a4b03dd
...
...
@@ -610,7 +610,7 @@ Nesting arguments and more complex examples::
3232235521
>>>
>>> width = 5
>>> for num in range(5,12):
>>> for num in range(5,12):
#doctest: +NORMALIZE_WHITESPACE
... for base in 'dXob':
... print('{0:{width}{base}}'.format(num, base=base, width=width), end=' ')
... print()
...
...
@@ -698,7 +698,7 @@ Here is an example of how to use a Template:
>>> Template('Give $who $100').substitute(d)
Traceback (most recent call last):
[...]
ValueError: Invalid placeholder in string: line 1, col 1
0
ValueError: Invalid placeholder in string: line 1, col 1
1
>>> Template('$who likes $what').substitute(d)
Traceback (most recent call last):
[...]
...
...
Misc/ACKS
View file @
5a4b03dd
...
...
@@ -1103,6 +1103,7 @@ Ionel Simionescu
Kirill Simonov
Nathan Paul Simons
Adam Simpkins
Ravi Sinha
Janne Sinkkonen
Ng Pheng Siong
George Sipe
...
...
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