3 ms·
Could have been even easier: `argparse.Namespace` already has `__contains__()` ツ That said, https://pypi.org/project/addict/ https://pypi.org/project/addict/ h
by nicwolff 3y ago
Could have been even easier: `argparse.Namespace` already has `__contains__()` ツ
That said, https://pypi.org/project/addict/ https://pypi.org/project/addict/ has been around a long time...
- astrea 3y agoThat 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.