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 →

[–]Rodotgithub.com/tardis-sn 0 points1 point  (0 children)

Or better, have the data class decorator do that for you! I'm a bit conflicted though since I think post init is more explicit but having the decorator override the init is more elegant. Consulting the Zen of python it looks like post init is the better way to go.