Skip to content

Instantly share code, notes, and snippets.

View aa403's full-sized avatar
🌒
phoenixing

aa403

🌒
phoenixing
View GitHub Profile
import collections
class DictProxy(collections.Mapping):
"""
A proxy for a dictionary that allows attribute access to underlying keys.
You may pass a custom ``wrapper`` to override the logic for wrapping
various custom types.
"""