On 9 September 2016 at 15:34, Benjamin Peterson <benja...@python.org> wrote:
> On Thu, Sep 8, 2016, at 22:33, Tim Delaney wrote: > > On 9 September 2016 at 07:45, Chris Angelico <ros...@gmail.com> wrote: > > > > > On Fri, Sep 9, 2016 at 6:22 AM, Victor Stinner < > victor.stin...@gmail.com> > > > wrote: > > > > A nice "side effect" of compact dict is that the dictionary now > > > > preserves the insertion order. It means that keyword arguments can > now > > > > be iterated by their creation order: > > > > > > > > > > This is pretty sweet! Of course, there are going to be 1172 complaints > > > from people who's doctests have been broken, same as when hash > > > randomization came in, but personally, I don't care. Thank you for > > > landing this! > > > > > > > Are sets also ordered by default now? None of the PEPs appear to mention > > it. > > No. > That's an unfortunate inconsistency - I can imagine a lot of people making the assumption that if dict is ordered (esp. if documented as such) then sets would be as well. Might need a big red warning in the docs that it's not the case. Tim Delaney
_______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com