Am I only the one who hates writing long constructor method in the class ? Am I only the one who hates the memory representation of the object when i print the object as print(‘my-object’) ?
If you guys feels my pain! Cheers dude , You are in the right place ! 🍒
Let’s start Data Classes 💃that uses dataclasses module
In a normal concrete class, we want to define a constructor and __repr__ to make the custom representation of the object when object is passed as parameter to print() function. Look at the code below !


















