dict
Python 2
Python 3
  • items(), return dict_items, instead of list in Python 2
  • keys(), return dict_keys, instead of list in Python 2
  • values(), return dict_values, instead of list in Python 2
  • has_key(), has been removed in Python 3
  • iterkeys(), has been removed in Python 3
  • itervalues() has been removed in Python 3
  • iteritems() has been removed in Python 3