Open cheqianh opened 1 year ago
Specifically, item() and iteritems(). The original conversation is available in https://github.com/amazon-ion/ion-python/pull/284#discussion_r1319185416.
item()
iteritems()
In details, in Python 2:
dict.items() Description: Return a **list** of the dictionary's (key, value) tuple pairs.
in Python3:
dict.items() Description: Return a **view** object of the dictionary's (key, value) pairs.
We are still returnning a whole list, and we still have iteritems() which python 3 has removed it.
Description:
Specifically,
item()
anditeritems()
. The original conversation is available in https://github.com/amazon-ion/ion-python/pull/284#discussion_r1319185416.In details, in Python 2:
in Python3:
We are still returnning a whole list, and we still have
iteritems()
which python 3 has removed it.