AllenDowney / AllenDowney/ThinkPython
Add an introduction or exercise for dataclass in Ch. 18?
Nobody has claimed this yet.
- Dominant language
- Jupyter Notebook
- Stars
- 2.7k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
Since the book already cover namedtuple in Ch.18, maybe consider adding dataclass as well? It's been in the stdlib since 3.7 and is pretty common nowadays.
It'd be a nice complement to namedtuple—mutable, supports methods, less boilerplate than writing a regular class. Readers would find it useful.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing Chapter 18's existing namedtuple material and the repository's notebook structure. Determine whether the dataclass addition should be an introduction or an exercise, and make the chosen material a clear complement to namedtuple. Done means Chapter 18 includes a coherent dataclass treatment suitable for readers.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- jupyter-notebook, python
- Domain
- content, documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100