Skip to content

classes odds and ends could mention dataclasses #99908

Closed
@gpshead

Description

@gpshead

Documentation

https://docs.python.org/3/tutorial/classes.html#odds-and-ends

"Sometimes it is useful to have a data type similar to the Pascal “record” or C “struct”, bundling together a few named data items. An empty class definition will do nicely:"

This does not mention dataclasses but the use case it covers makes sense for that. Should the tutorial go there?

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions