Skip to content

Convert several for loops in dataclasses module to list comprehensions #114011

Closed as not planned
@keithasaurus

Description

@keithasaurus

Feature or enhancement

Proposal:

There are several for loops in the dataclasses module where performance would presumably improve with list comprehensions. Arguably the code becomes a bit clearer as well.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibPython modules in the Lib dirtype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions