On 18/10/2026 22:01, rbowman wrote:
> On Sun, 18 Oct 2026 12:11:06 +0200, John Bokma wrote:
[snip]
>> If that's the case use a dataclass with frozen=True (and perhaps
>> kw_only=True).
>
> Yes, the language has been improving but iirc dataclass appeared in 3.7.
named tuples are another, older way.
But 3.7, that's 2018!
--
Static tumblelog generator: https://github.com/john-bokma/tumblelog/
Available as Python or Perl. Example tumblelog: https://plurrrr.com/