Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some IonPyDict Methods Behave Like Python 2 Dict #288

Open
cheqianh opened this issue Sep 7, 2023 · 0 comments
Open

Some IonPyDict Methods Behave Like Python 2 Dict #288

cheqianh opened this issue Sep 7, 2023 · 0 comments

Comments

@cheqianh
Copy link
Contributor

cheqianh commented Sep 7, 2023

Description:

Specifically, item() and iteritems(). The original conversation is available in #284 (comment).

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant