Se non sbaglio in pypy i dizionari garantiscono l'ordine Il giorno 12 settembre 2017 14:28, Christian Barra <barrac...@gmail.com> ha scritto:
> > > On 12 Sep 2017, at 12:52, Esalando Prassi <alessandro.p...@katamail.com> > wrote: > > 2017-09-12 12:20 GMT+02:00 Christian Barra <barrac...@gmail.com>: > > > On 12 Sep 2017, at 11:27, Giornale di Sistema <giornaledisist...@gmail.com> > wrote: > > > Un dizionario non garantisce MAI un ordine, per quello ci sono gli ordered > dict. > > > Mai dire mai. > > In Python 3.6 la cosa e’ cambiata. > > > Se non ricordo male questo talk capolavoro: > > - https://www.youtube.com/watch?v=p33CVV29OG8 > > spiega bene la cosa. > > Da quel che mi ricordo in Python 3.6 i dict sono ordinati "by accident". > A quanto ne so si dovrebbe evitare di scrivere codice che faccia leva > su questa feature perche' domani potrebbe non esserci piu' e il modo > sano di avere dizionari ordinati e' usare i collections.OrderedDict. > > > https://mail.python.org/pipermail/python-dev/2016-September/146327.html > > > —— > Christian Barra > Python Freelancer // Consultant // Trainer > Board member of the EuroPython Society > www.chrisbarra.xyz > > _______________________________________________ > Python mailing list > Python@lists.python.it > https://lists.python.it/mailman/listinfo/python > > -- There is a crack, a crack in everything. That’s how the light gets in L. Cohen
_______________________________________________ Python mailing list Python@lists.python.it https://lists.python.it/mailman/listinfo/python