example-code icon indicating copy to clipboard operation
example-code copied to clipboard

How to maintain keys in TransformDict?

Open oldman1991 opened this issue 7 years ago • 0 comments

I see the demo: ''' >>> d = TransformDict(str.lower) >>> d['Foo'] = 5 >>> d['foo'] == d['FOO'] == d['Foo'] == 5 True >>> set(d.keys()) {'Foo'} ''' but , i dont know the object how to maintain the keys. thanks

oldman1991 avatar Jun 11 '18 03:06 oldman1991