(original) (raw)
On 10/05/2012 01:59 PM, Devin
Jeanpierre wrote:
I've never understood why locals() returned a mutable dictionary either, except that Python has no immutable dictionary type.
Ah, but these days it has types.MappingProxyType which provides a read-only wrapper around another mapping type. Perhaps that should be employed here.
/arry