News for hackers. Stuff that matters.
Re:Python: The Dictionary Playbook by andreasvc on Thursday January 03, 2013 @02:47AM (#5001393)
It's not meant as a replacement; views form the new implementation of the keys(), values(), and items() methods in Python 3. The have been made available in Python 2 as viewkeys() etc. As said, they have the advantage of providing set operations (e.g., intersection with the keys of another dictionary), and they are more efficient than keys() or iterkeys(), because they have less overhead.

There are no comments on this comment yet.