Why does Python's iter() on a mapping return iterkeys() instead of iteritems()?
Asked 2008-08-30T01:51:05.187
14
It seems like if you want to get the keys of a mapping, you ask for them; otherwise, give me the whole mapping (constituted by a set of key-value pairs). Is there a historical reason for this?