Python dataclass: Taking advantage of the new decorator

Petros Demetrakopoulos
3 min readNov 18, 2022
Photo by Chris Ried on Unsplash

Introduction

Python 3.7 introduced a new and really interesting decorator called dataclass. Despite this decorator offers no new functionality, which means that it does not offer a new possibility to python developers in terms of implementation, it makes it way easier to define classes oriented to store data. Think of it like what we used to call “Plain Old…

--

--

Petros Demetrakopoulos

💻Code-blooded, 🌏 Traveler, . Lifelong learner 📚. Currently studying Data Science and AI at TU/e, Eindhoven, NL. https://petrosdemetrakopoulos.github.io