mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
[3.10] bpo-46728: fix docstring of combinations_with_replacement for consistency (GH-31293) (GH-31350)
This commit is contained in:
parent
b27195332e
commit
ac55cea3cb
2 changed files with 4 additions and 4 deletions
|
@ -2926,14 +2926,14 @@ itertools.combinations_with_replacement.__new__
|
|||
r: Py_ssize_t
|
||||
Return successive r-length combinations of elements in the iterable allowing individual elements to have successive repeats.
|
||||
|
||||
combinations_with_replacement('ABC', 2) --> AA AB AC BB BC CC"
|
||||
combinations_with_replacement('ABC', 2) --> ('A','A'), ('A','B'), ('A','C'), ('B','B'), ('B','C'), ('C','C')
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
itertools_combinations_with_replacement_impl(PyTypeObject *type,
|
||||
PyObject *iterable,
|
||||
Py_ssize_t r)
|
||||
/*[clinic end generated code: output=48b26856d4e659ca input=dc2a8c7ba785fad7]*/
|
||||
/*[clinic end generated code: output=48b26856d4e659ca input=1dc58e82a0878fdc]*/
|
||||
{
|
||||
cwrobject *co;
|
||||
Py_ssize_t n;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue