<div dir="ltr">As reference of prior art, there is <a href="https://pypi.python.org/pypi/munch">https://pypi.python.org/pypi/munch</a> in PyPI</div><div class="gmail_extra"><br><div class="gmail_quote">On 29 November 2017 at 05:52, Serhiy Storchaka <span dir="ltr"><<a href="mailto:storchaka@gmail.com" target="_blank">storchaka@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In 3.7 I have removed an old-deprecated plistlib.Dict. [1] Actually it already was deprecated when the plistlib module was added to the regular stdlib in Python 2.6.<br>
<br>
This is a dict subclass which allows to access items as attributes.<br>
<br>
d = plistlib.Dict()<br>
d['a'] = 1<br>
assert d.a == 1<br>
d.b = 2<br>
assert d['b'] == 2<br>
<br>
Raymond noticed that that capability seemed nice to have.<br>
<br>
What do you think about reviving this type as general purpose type in collections or types? Perhaps it can be convenient for working with JSON, plists, configuration files, databases and in other cases that need a dict with string keys.<br>
<br>
If reintroduce it, there are open questions.<br>
<br>
1. The name of the type.<br>
<br>
2. The location of the type. collections or types? Or other variants?<br>
<br>
3. How it will collaborate with OrderedDict, defaultdict, etc?<br>
<br>
4. Should it be a dict subclass, or a mixin, or a proxy? Or add several types?<br>
<br>
<br>
[1] <a href="https://bugs.python.org/issue29196" rel="noreferrer" target="_blank">https://bugs.python.org/issue2<wbr>9196</a><br>
<br>
______________________________<wbr>_________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org" target="_blank">Python-ideas@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-ideas" rel="noreferrer" target="_blank">https://mail.python.org/mailma<wbr>n/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" rel="noreferrer" target="_blank">http://python.org/psf/codeofco<wbr>nduct/</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr">Daniel F. Moisset - <span style="font-size:small">UK Country Manager - Machinalis Limited</span><div><a href="http://www.machinalis.com" target="_blank">www.machinalis.co.uk</a></div><div>Skype: @dmoisset T: <span style="background-color:transparent;font-family:Arial;font-size:8pt;white-space:pre-wrap">+ 44 7398 827139</span></div><div><span><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">1 Fore St, London, EC2Y 9DT</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="background-color:transparent;font-family:Arial;font-size:8pt;white-space:pre-wrap">Machinalis Limited is a company registered in England and Wales. Registered number: 10574987.</span></p></span></div></div></div></div></div></div>
</div>