diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2009-12-02 14:27:11 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2009-12-02 14:27:11 (GMT) |
commit | 5a73ff81f1caf8f7c13c459ac450f33695d2e626 (patch) | |
tree | c5edadf00bc0a021e67dfdb98a9671edfcd4b4ef /Doc/whatsnew | |
parent | d728871ee170604e18dd8e0bf1b28b6520a5b809 (diff) | |
download | cpython-5a73ff81f1caf8f7c13c459ac450f33695d2e626.zip cpython-5a73ff81f1caf8f7c13c459ac450f33695d2e626.tar.gz cpython-5a73ff81f1caf8f7c13c459ac450f33695d2e626.tar.bz2 |
Markup fixes
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/2.7.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/whatsnew/2.7.rst b/Doc/whatsnew/2.7.rst index b791866..37ffe09 100644 --- a/Doc/whatsnew/2.7.rst +++ b/Doc/whatsnew/2.7.rst @@ -583,14 +583,14 @@ changes, or look through the Subversion logs for all the details. an invalid file descriptor. (Implemented by Benjamin Peterson; :issue:`4991`.) -* New function: ``itertools.compress(*data*, *selectors*)`` takes two +* New function: ``itertools.compress(data, selectors)`` takes two iterators. Elements of *data* are returned if the corresponding value in *selectors* is true:: itertools.compress('ABCDEF', [1,0,1,0,1,1]) => A, C, E, F - New function: ``itertools.combinations_with_replacement(*iter*, *r*)`` + New function: ``itertools.combinations_with_replacement(iter, r)`` returns all the possible *r*-length combinations of elements from the iterable *iter*. Unlike :func:`combinations`, individual elements can be repeated in the generated combinations:: @@ -1076,5 +1076,5 @@ Acknowledgements The author would like to thank the following people for offering suggestions, corrections and assistance with various drafts of this -article: no one yet. +article: Hugh Secker-Walker. |