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

Python 3 compatibility #8

Merged
merged 2 commits into from
Feb 29, 2016
Merged

Python 3 compatibility #8

merged 2 commits into from
Feb 29, 2016

Conversation

samizdis
Copy link

You nearly had it.

my_function.__code__ is backwards compatible (at least to 2.7)

The order of the js snippets isn't important, only their content is. For whatever reason, Py3 orders them differently.

str(expected.encode('utf8')) is needed since UTF8 and ascii sort differently.

Sam Brown and others added 2 commits February 23, 2016 22:16
It's not possible to edit a dictionary while iterating over it in Python3.
The work-around is to use `list(d)` to force a copy.
@citruspi citruspi merged commit 8e91f15 into citruspi:master Feb 29, 2016
@citruspi
Copy link
Owner

Awesome stuff @Gyppo! 💥

@citruspi
Copy link
Owner

This has been pushed to PyPi as version 0.5.5.

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.

None yet

2 participants