Stefan Krah added the comment:
I'm not so sure. If dicts or classes are used for configuration
or informational purposes, I prefer them to be locked down.
An example of the first is the decimal context, where it was possible
to write context.emax = 9 instead of context.Emax = 9 without getting
an error. This is an easy mistake to make and can be hard to track
down in a large program.
The mistake here is maybe less likely, but I agree with Georg that
it's a case for a read-only dict/dictproxy.
status: pending -> open
Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list