bcj / AttrDict

A dictionary that allows attribute-style access.
MIT License
272 stars 119 forks source link

immutable AttrDict instances #28

Open timodonnell opened 9 years ago

timodonnell commented 9 years ago

I find I need an immutable mapping fairly often. Would it be reasonable to add an attrdict.FrozenAttrDict class that supports __hash__?

bcj commented 9 years ago

It's unlikely I will implement this (especially since I've pretty much ignored this project for the last 4 months), but I would definitely accept a pull request (based on the 2.0 branch).

I'm going to keep this issue open as I do wish Python had a frozendict, and might feel ambitious enough to give it a try in the future.