On 09/11/2013 08:49 AM, Victor Stinner wrote:
2013/9/11 Ethan Furman <email@example.com>:
He isn't keeping the key unchanged (notice no white space in MAPPING), he's
merely providing a function that will automatically strip the whitespace
from key lookups.
transformdict keeps the key unchanged, see the first message:
>>> d = transformdict(str.lower)
>>> d['Foo'] = 5