Josiah Carlson wrote: > On Sat, Sep 13, 2008 at 1:20 PM, Armin Ronacher wrote: >> Iterating over weak key dictionaries might not be the most common task but I >> know some situations where this is necessary. Unfortunately I can't see a >> way to achieve that in Python 3. > > i = list(d.keys()) Surely i = list(d) is a more reasonable way to do this. I seldom find a reason to use .keys --Scott David Daniels Scott.Daniels at Acm.Org
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