I understand there were many language features that needed to be changed now that
version 3.0 is coming out. A few just seem like change for change's sake though:
* dict methods dict.keys(), dict.items() and dict.values() return “views” instead of lists. For example, this no longer works: k = d.keys(); k.sort(). Use k = sorted(d) instead
Uh,
(
Read more... )
Comments 1
Reply
Leave a comment