A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2008-September/082404.html below:

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

[Python-Dev] Weak Dictionary Iteration Behavior in Python 3 [Python-Dev] Weak Dictionary Iteration Behavior in Python 3Greg Ewing greg.ewing at canterbury.ac.nz
Mon Sep 15 03:17:45 CEST 2008
Georg Brandl wrote:

> In this case, what WeakKeyDictionary.keys() returns is not a view anyway,
> so using list(self.data.keys()) in the method seems like a good compromise.

I don't think that helps, because the implementation has
to iterate over that to dereference the weak refs, and if
that's done in Python code there's a chance for a weak
ref to disappear in the process.

-- 
Greg
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4