News for hackers. Stuff that matters.
Re:DotDict: A simple Python library to make chained attribut... by nicwolff on Wednesday August 02, 2023 @06:14PM (#36978486)
Could have been even easier: `argparse.Namespace` already has `__contains__()` ツ

That said, https://pypi.org/project/addict/ has been around a long time...

Re:DotDict: A simple Python library to make chained attribut... by astrea on Wednesday August 02, 2023 @06:31PM (#36978695)
That contains doesn’t permit the behavior, though. It would give you an AttributeError if you attempted this.

Yes, addict seems to be exactly what I was going for.