Ari Joury, PhD
Aug 18, 2022

--

Serban, thanks for your thoughts!

Of course, generally you can write a class without __init__(). But it's much easier to have a default functionality already there, hence the DataClass. Then if you want some custom functionality, you can still write a regular class.

Thanks for pointing this out!

--

--

Ari Joury, PhD
Ari Joury, PhD

Written by Ari Joury, PhD

Founder of Wangari. Sustainable finance & ESG-financial modeling. Get all articles 3 days in advance: https://wangari.substack.com

No responses yet