4 ms·
Ah right, I'm not sure how they're significantly different. Regardless, not having a immutable dictionary-type is just... frustrating.
by packetlost 4y ago
Ah right, I'm not sure how they're significantly different. Regardless, not having a immutable dictionary-type is just... frustrating.
- andelink 4y agoI’ve used types.MappingProxyType on occasion for this
- packetlost 4y agoThat's ultimately what I ended up using, but it seems not ideal considering the underlying data is still mutable and you still have to maintain a reference to it somewhere to prevent GC