Stephan Richter wrote:
for entry in tuple(tree.keys())

for entry in tree.iterkeys()

Which of these is preferred?

What, specifically, does iterkeys do? I've never bumped into it before and I'm interested if there's a contract that says iterkeys returns an immutable key sequence, which is kindof implied above...



Simplistix - Content Management, Zope & Python Consulting
Zope3-users mailing list

Reply via email to