Skip to content

combinations, partitions functions should return iterators #3989

Closed
@stevengj

Description

@stevengj

See this mailing-list discussion.

As @StefanKarpinski notes, the combinations function should really return an Iterator type; the task-based interface was doubtless easier to implement but is harder to use.

Furthermore, it looks like we have a little ways to go in order to beat the CPython itertools.combinations function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    breakingThis change will break codeperformanceMust go faster

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions