"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?
gpshead commentedNov 30, 2022
•
edited by bedevere-bot
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
The text was updated successfully, but these errors were encountered: