Yong Cui
Aug 18, 2021

--

I was just trying to focus on the initialization method in a general context. dataclass is helpful when the class is mostly used as a data container, which is less generic.

Anyhow, it's an awesome decorator to use where it's applicable.

--

--

Yong Cui
Yong Cui

Written by Yong Cui

Work at the nexus of biomedicine, data science & mobile dev. Author of Python How-to by Manning (https://www.manning.com/books/python-how-to).

Responses (1)