<div id="edo-message"><div>IIRC in CPython 3.6 and PyPy dicts are ordered based on insertion anyway; although it's an implementation-specific detail, realistically it removes some of the use cases for ordered dictionary literals.<br><br><br><div id="edo-signature"><pre>--
Ryan (ライアン)
Yoko Shimomura, ryo (supercell/EGOIST), Hiroyuki Sawano >> everyone else
<a href="http://refi64.com">http://refi64.com</a></pre></div></div></div><div id="edo-original"><div><blockquote type="cite"><div id="edo-meta">On Sep 7, 2017 at 6:40 AM, <<a href="mailto:nastasi@alternativeoutput.it">Matteo Nastasi</a>> wrote: <br><br></div><pre>Hi all,
<br>
<br>few days ago I thought about a way to rapresent sets and
<br>ordered dicts using a json compatible syntax, these are my conclusions:
<br>
<br>A set could be defined as { item1, item2, item3[...] }
<br>    with {,} as an empty set
<br>
<br>An ordered dict could be defined as [ item1: value1, item2: value2 ... ]
<br>    with [:] ase an empty odered dict
<br>
<br>It could be used inside python code or to serialize python structures in
<br>a json-like format (pyson maybe ?).
<br>
<br>What do you think about ?
<br>
<br>  Kind regards, Matteo.
<br>
<br>--  
<br>  email:   <a href="mailto:nastasi@alternativeoutput.it">nastasi@alternativeoutput.it</a>,   <a href="mailto:matteo.nastasi@gmail.com">matteo.nastasi@gmail.com</a>
<br>  web:   <a href="http://www.alternativeoutput.it">www.alternativeoutput.it</a>   irc: #<a href="mailto:linux-mi@irc.freenode.net">linux-mi@irc.freenode.net</a>
<br>                 linkedin: <a href="http://lnkd.in/SPQG87">http://lnkd.in/SPQG87</a>
<br>_______________________________________________
<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">https://mail.python.org/mailman/listinfo/python-ideas</a>
<br>Code of Conduct: <a href="http://python.org/psf/codeofconduct/">http://python.org/psf/codeofconduct/</a>
<br></pre></blockquote></div></div>