News for hackers. Stuff that matters.
Re:Box – Python dictionary with dot notation by greenie_beans on Friday December 17, 2021 @04:29PM (#29598563)
this is neat. my first thought was, “why not just use a dataclass?” but i guess this would do some different things than a dataclass? and be easier to create than a dataclass?
Re:Box – Python dictionary with dot notation by cricalix on Saturday December 18, 2021 @08:19AM (#29604280)
Box appears to date back to 2017 or so. Dataclasses came with Python 3.7 in 2018. So it probably scratched an itch for someone, and has continued to be useful with the extended capabilities.