3 ms·
The point of the article is that: do not return objects that are sequences too when a struct would suffice. Though the provided options are not immutable and i
by d0mine 2y ago
The point of the article is that: do not return objects that are sequences too when a struct would suffice.
Though the provided options are not immutable and it is much more important than whether you leak o[0] access. dataclass(frozen=True) is the only acceptable alternative.