[Python-Dev] Repeatability of looping over dicts (original) (raw)
A.M. Kuchling amk at amk.ca
Fri Jan 4 21:41:55 CET 2008
- Previous message: [Python-Dev] Repeatability of looping over dicts
- Next message: [Python-Dev] Repeatability of looping over dicts
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sat, Jan 05, 2008 at 07:05:55AM +1100, Tim Delaney wrote:
>So, do Python implementations need to guarantee that list(dictvar) == >a later result from list(dictvar)?
As I just posted to the blog, yes. Look at section 3.8 of the reference manual (Mapping Types), specifically footnote 3:
Ah, thanks! I guess that rules out using ConcurrentHashMap, short of materializing the entire list and sorting it in some way. Oh well.
--amk
- Previous message: [Python-Dev] Repeatability of looping over dicts
- Next message: [Python-Dev] Repeatability of looping over dicts
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]