sa2c / python-oop-novice

An introduction to object-oriented programming for Python users in research
https://sa2c.github.io/python-oop-novice/
Other
1 stars 5 forks source link

Mention `@dataclass` #22

Open chillenzer opened 1 year ago

chillenzer commented 1 year ago

If we are talking about all those dunder methods in "Special Methods", we might want to show the easy way out, i.e. @dataclass or attrs. Haven't really used it myself (except for playing around after getting to know it) but it's something one should be aware of in these situations.