Comment Comment by simonw > I wish python had a clean way to define types without defining classesdataclasses are pretty much that. They use the class mechanism but they're culturally accepted now as a clean way to build the equivalent of structs. parent simonw 1 year ago
dataclasses are pretty much that. They use the class mechanism but they're culturally accepted now as a clean way to build the equivalent of structs.