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

refactor: added python 3 compatability #13

Merged
merged 1 commit into from Mar 6, 2022

Conversation

c-cret
Copy link
Owner

@c-cret c-cret commented Mar 6, 2022

(Renamed base branch to match repo description)Added dictionary compatibility with python 3. In python 3, when iterating through dictionaries, one has to keep in mind that the methods ".values(), .keys(), and .values()" do not return actual lists. They return objects, which you can use to iterate over the keys and values. But you can easily typecast those objects into lists by using the list() function.

@c-cret c-cret requested a review from Inomares March 6, 2022 19:57
@c-cret c-cret self-assigned this Mar 6, 2022
Copy link
Owner Author

@c-cret c-cret left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@c-cret c-cret merged commit 7194384 into fix_python_3_compatibility Mar 6, 2022
@c-cret c-cret deleted the python3_conversion branch March 6, 2022 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant