Data Classes in python π(part-2)
In this Blog, Letβs discuss dataclass decorator parameters. We can control the features of the dataclass by passing arguments to dataclass decorator .
In this Blog, Letβs discuss dataclass decorator parameters. We can control the features of the dataclass by passing arguments to dataclass decorator .
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.
Some days back, I was just digging deep into python lists and i found some thing really interesting and confusing at the same time. βI will make you confusing tooβ . Chalooo, Letβs start !β¦.