Skip to content

Commit ac55cea

Browse files
[3.10] bpo-46728: fix docstring of combinations_with_replacement for consistency (GH-31293) (GH-31350)
1 parent b271953 commit ac55cea

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
@@ -2926,14 +2926,14 @@ itertools.combinations_with_replacement.__new__
29262926
r: Py_ssize_t
29272927
Return successive r-length combinations of elements in the iterable allowing individual elements to have successive repeats.
29282928
2929-
combinations_with_replacement('ABC', 2) --> AA AB AC BB BC CC"
2929+
combinations_with_replacement('ABC', 2) --> ('A','A'), ('A','B'), ('A','C'), ('B','B'), ('B','C'), ('C','C')
29302930
[clinic start generated code]*/
29312931

29322932
static PyObject *
29332933
itertools_combinations_with_replacement_impl(PyTypeObject *type,
29342934
PyObject *iterable,
29352935
Py_ssize_t r)
2936-
/*[clinic end generated code: output=48b26856d4e659ca input=dc2a8c7ba785fad7]*/
2936+
/*[clinic end generated code: output=48b26856d4e659ca input=1dc58e82a0878fdc]*/
29372937
{
29382938
cwrobject *co;
29392939
Py_ssize_t n;

0 commit comments

Comments
 (0)