Bug report
Bug description:
About permutations(), setting the longer length than iterable argument to r argument returns nothing as shown below. *In this example, setting 1, 2 and 3 to r argument returns values:
from itertools import permutations
for x in permutations(iterable='ABC', r=4):
print(x)
# Nothing
So for this, the error like below should be returned:
ValueError: r must be 0 <= x < = iterable length
from itertools import permutations
for x in permutations(iterable='ABC', r=4):
print(x)
# Nothing
CPython versions tested on:
3.13
Operating systems tested on:
Windows