Skip to content

group by does not sort data before grouping #134797

Closed as not planned
Closed as not planned
@balakhaniyan

Description

@balakhaniyan

Bug report

Bug description:

itertools.groupby(dynamic_properties, lambda d: d.table_id)

When data is not sorted base on key, group by does not work correctly and it needs to be sorted...
Isn't it a bug?

CPython versions tested on:

3.13

Operating systems tested on:

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions