[Python-Dev] Re: PEP 584 underspecified

2020-05-19 Thread David Mertz
I comment on the PR. On Tue, May 19, 2020 at 4:44 PM Brandt Bucher wrote: > Maybe I'm missing something here. The PEP specifically says: > > > Similarly, the iteration order of the key-value pairs in the dictionary > will follow the same semantics as the examples above, with each newly added > k

[Python-Dev] Re: PEP 584 underspecified

2020-05-19 Thread Brandt Bucher
Maybe I'm missing something here. The PEP specifically says: > Similarly, the iteration order of the key-value pairs in the dictionary will > follow the same semantics as the examples above, with each newly added key > (and its value) being appended to the current sequence. That seems sufficien

[Python-Dev] Re: PEP 584 underspecified

2020-05-19 Thread Guido van Rossum
Yes, the assumption (and the implementation) is that newly added keys are inserted at the end, in the order in which the second object produces them when iterated over. Please do send us a PR for the peps repo! On Tue, May 19, 2020 at 12:34 PM David Mertz wrote: > I know this is late in the cycl