Skip to content

Some IonPyDict Methods Behave Like Python 2 Dict #288

Open
@cheqianh

Description

@cheqianh

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions