This is the kind of ad-hoc PEP proposal that could be completely avoidable if there was a generic modifier or initialization/declaration construction for declaring a variable as constant. So incredibly simple, so incredibly useful that it's hard to believe that it hasn't been accepted yet (it was proposed).
6 comments
[ 2.9 ms ] story [ 26.5 ms ] threadconst foo = {};
foo.bar = 1;
https://www.python.org/dev/peps/pep-0567/#implementation