[Python-Dev] PEP 469: Restoring the iterkeys/values/items() methods
Antoine Pitrou
solipsis at pitrou.net
Sat Apr 19 15:04:14 CEST 2014
On Sat, 19 Apr 2014 11:41:35 +0000
Kristján Valur Jónsson <kristjan at ccpgames.com> wrote:
> Wouldn't "iterkeys" simply be an alias for "keys" and so on?
The PEP shows the following semantics:
def iterkeys(self):
return iter(self.keys())
def itervalues(self):
return iter(self.values())
def iteritems(self):
return iter(self.items())
Regards
Antoine.
More information about the Python-Dev
mailing list