[Python-3000] Spooky behavior of dict.items() and friends
Jason Orendorff
jason.orendorff at gmail.com
Fri Apr 4 23:02:01 CEST 2008
On Wed, Apr 2, 2008 at 5:48 PM, "Martin v. Löwis" <martin at v.loewis.de> wrote:
> In your code, how many (in absolute numbers) applications of .items()
> would break when .items() becomes a view?
Sorry for the slow response. Good question. In 25k lines of code
(not mine but mostly written by people "like me"), I found only 4, all
"loud". This is pretty convincing. However, I do want to search
again for possible bugs introduced by calls to .keys(), which is used
much more often in this code.
-j
More information about the Python-3000
mailing list