[Python-Dev] Weak Dictionary Iteration Behavior in Python 3

Greg Ewing greg.ewing at canterbury.ac.nz
Mon Sep 15 03:08:40 CEST 2008


My thought on all this is to implement WeakKeyDictionary as
a C extension and have it atomically construct and return
a list for keys().

While this would not be exactly the same behaviour as an
ordinary dict, I don't expect that much code would notice
the difference.

-- 
Greg



More information about the Python-Dev mailing list