Skip to content

Commit 278fdd3

Browse files
bpo-46728: fix docstring of combinations_with_replacement for consistency (GH-31293)
1 parent 1d90364 commit 278fdd3

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

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

0 commit comments

Comments
 (0)