Skip to content

python 2/3 compatibility#11

Open
iborko wants to merge 6 commits intogoberoi:masterfrom
StyriaAI:python_2_3_compatibility
Open

python 2/3 compatibility#11
iborko wants to merge 6 commits intogoberoi:masterfrom
StyriaAI:python_2_3_compatibility

Conversation

@iborko
Copy link
Copy Markdown

@iborko iborko commented Jan 22, 2018

I made changes to make this code both python2 and python3 compatible. I replaced the iteritems with items - it doesn't do the same thing, but for very small lists (as the ones in this code) performance impact is insignificant. And of course, results are equal.
Also added list in front of zip to make in work in python3 (where zip returns a iterable ZipObject).

@goberoi
Copy link
Copy Markdown
Owner

goberoi commented Feb 2, 2018

Thank you for the several pull requests you have submitted!

I will take a look at them this weekend and write back or merge away.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants