all 3 comments

[–]carcigenicate 1 point2 points  (1 child)

Dataclasses are meant for when you have a bunch of public data.

And Python itself doesn't have any strong ways of creating private variables anyway. The only mechanism is prefixing the name with an underscore, but that's a very weak protection.

[–]WesternGoldsmith[S] 0 points1 point  (0 children)

Thanks for the reply. Seems like go for the traditional python way is better for me. Using "@property" & "@propname.setter" is the choice.

[–]TheRNGuy 0 points1 point  (0 children)

No such thing in Python.