Skip to content

tuples can be created from iterators #155121

Description

@lbaumbauer

Bug report

Bug description:

tuples can be created from iterators and this code should not need the creation of a list in between the iterator and the tuple.

    if typed:
        key += tuple([type(v) for v in args])
        if kwds:
            key += tuple([type(v) for v in kwds.values()])

as seen in ./Lib/functools.py

CPython versions tested on:

3.16

Operating systems tested on:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions