<div dir="ltr"><a href="https://www.python.org/dev/peps/pep-0416/">https://www.python.org/dev/peps/pep-0416/</a><br><div><br></div><div>Also: <a href="https://pypi.python.org/pypi/frozendict">https://pypi.python.org/pypi/frozendict</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 29, 2017 at 9:30 AM, Asen Bozhilov <span dir="ltr"><<a href="mailto:asen.bozhilov@gmail.com" target="_blank">asen.bozhilov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>This is my first post here. I have strong experience with JavaScript and I'm lucky that I could move forward to Python. </div><div>What I miss in Python are immutable dictionaries. They are especially useful for configurations and call functions which expect dictionary as argument. In my opinion they would let a place for underlying optimizations. </div><div><br></div><div>I'd like to propose also literaling syntax for immutable dictionaries. </div><div><br></div><div>immutable_dict = (</div><div> 'key1' : 'value1',</div><div> 'key2' : 'value2'</div><div>) </div><div><br></div><div>This syntax is not ambiguous with expression statements and tuple literals, but it requires a bit lookahed during the parsing.<br></div><div><br></div><div>I would appreciate your opinions on the topic. Most interesting for me is why they are not already part of the language? </div><div><br></div><div>Kind regards, </div><span class="HOEnZb"><font color="#888888"><div>Asen Bozhilov </div></font></span></div>
<br>______________________________<wbr>_________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-ideas" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" rel="noreferrer" target="_blank">http://python.org/psf/<wbr>codeofconduct/</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Keeping medicines from the bloodstreams of the sick; food <br>from the bellies of the hungry; books from the hands of the <br>uneducated; technology from the underdeveloped; and putting <br>advocates of freedom in prisons. Intellectual property is<br>to the 21st century what the slave trade was to the 16th.<br></div>
</div>