bpo-33130 by vreuter · Pull Request #6204 · python/cpython (original) (raw)

Hi @vreuter thanks for taking time to look at this and contributing,

since a user may apply a non-commutative function.

You looks to imply that a iterable is unordered, which is wrong, an iterable is as ordered as a sequence, the sequence only has the property to access any member efficiently by integer indice.

the docstring refers to sequence

And the implementation uses the iterator protocol. I would fix the docstring instead of the documentation.

Would you also open an issue on bugs.python.org and rename your PR with "bpo-xxx" with the issue number, and please sign the CLA?