Apr 30, 2023
Hah, funny, I wrote something like this many years ago, not as complete as this, inspired by argparse.Namespace
.
But I concluded that it was a terrible idea. :-D
First, what happens if your dictionary key has a .
in it?!
Worse, what happens when you pass one of these funky dictionaries to someone who is expecting a plain dict
?
Also, it's very confusing to have ['A', 'B'] in d
to be true when there is no element ['A', 'B']
in the dict.
This library gives you few new features, and a lot of potential traps, in order to save typing a few quotes.
I clapped a bunch, though: it was a fun article anyway. :-D