News for hackers. Stuff that matters.
Re:DotDict: A simple Python library to make chained attribut... by i13e on Wednesday August 02, 2023 @05:20PM (#36977670)
Re:DotDict: A simple Python library to make chained attribut... by b33j0r on Wednesday August 02, 2023 @10:16PM (#36980556)
Anthony’s video 100%.

For anyone who doesn’t watch… the point being made is that this has been done so many times that yet another implementation was pulled from the stdlib in 3.12 (AttrDict).

It’s true. I’ve implemented this several times myself, and thought it was a new/good idea every time until I remembered how many abstractions it breaks if I use it anywhere.

I can’t promise I won’t do it again in a few weeks! `NaturalDictLite` is probably coming around in the accompanying rotation of bad name ideas :p