◐ Shell
clean mode source ↗

How to maintain keys in TransformDict?

This repository was archived by the owner on Dec 2, 2021. It is now read-only.

This repository was archived by the owner on Dec 2, 2021. It is now read-only.

Open

@oldman1991

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels

    No labels

    Type

    No type

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions