Skip to content

Commit 41d1d30

Browse files
LeeDongGeon1996hello-adam
authored andcommitted
[3.9] bpo-46728: fix docstring of combinations_with_replacement for consistency (pythonGH-31293). (pythonGH-31356)
1 parent e33cc21 commit 41d1d30

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Modules/clinic/itertoolsmodule.c.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/itertoolsmodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2793,14 +2793,14 @@ itertools.combinations_with_replacement.__new__
27932793
r: Py_ssize_t
27942794
Return successive r-length combinations of elements in the iterable allowing individual elements to have successive repeats.
27952795
2796-
combinations_with_replacement('ABC', 2) --> AA AB AC BB BC CC"
2796+
combinations_with_replacement('ABC', 2) --> ('A','A'), ('A','B'), ('A','C'), ('B','B'), ('B','C'), ('C','C')
27972797
[clinic start generated code]*/
27982798

27992799
static PyObject *
28002800
itertools_combinations_with_replacement_impl(PyTypeObject *type,
28012801
PyObject *iterable,
28022802
Py_ssize_t r)
2803-
/*[clinic end generated code: output=48b26856d4e659ca input=dc2a8c7ba785fad7]*/
2803+
/*[clinic end generated code: output=48b26856d4e659ca input=1dc58e82a0878fdc]*/
28042804
{
28052805
cwrobject *co;
28062806
Py_ssize_t n;

0 commit comments

Comments
 (0)