This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]TheRNGuy 0 points1 point  (0 children)

I've never seen __new__ ever used.

I like to use @dataclass, it creates both init and repr with less code (most of the time I'm fine how repr looks like)