Me: Dear I'd like a dict that is immutable, as immutable objects are nice and safe to use;
Python: Why don't you use types.MappingProxyType?
Me: It's not Pickleable[1];
Python: Wait some time and use ``frozenmap``;
Me: It does not support O(1) operations[2];
Python: Why don't you roll your own?
Me: 🤦‍♀️

I'll download some implementation from PIP, don't worry. But I'm mildly irritated that I need.

[1]: bugs.python.org/issue31209
[2]: python.org/dev/peps/pep-0603/

Follow

Correction: I won't add a dependency for 80 line file. It's not JavaScript.

Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!