Skip to content

Implement reprlib.repr_args #136808

@bswck

Description

@bswck

Feature or enhancement

Proposal:

As discussed in the discourse thread, a function in reprlib to help construct dataclass-like representation for arbitrary classes, drawing inspiration from existing implementations in asyncio and unittest private helpers. Any input is very welcome.

Has this already been discussed elsewhere?

I have already discussed this feature proposal on Discourse

Links to previous discussion of this feature:

https://discuss.python.org/t/new-function-repr-args-in-pprint-or-reprlib/65193/1

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