I don't like spaces in key names, that's too error prone IMHO.
BTW,__setitem__() does not alter any key name, the replaces() are just for filtering out allowed characters so that the remainders can be checked with isalnum(). replace() doesn't change the original string.
I don't like spaces in key names, that's too error prone IMHO.
BTW,__setitem__() does not alter any key name, the replaces() are just for filtering out allowed characters so that the remainders can be checked with isalnum(). replace() doesn't change the original string.