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

handle python3 unicode string coercion #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sbma44
Copy link

@sbma44 sbma44 commented Mar 20, 2016

I was hitting errors in python3.4 -- looks to me like py3's default unicode string behavior was failing to be coerced to cpp strings. This PR adds explicit encoding/decoding based on a check of PY_MAJOR_VERSION. It also includes a tox.ini file to make it easier to run py2 & py3 tests using tox.

This is my first time messing with Cython, so apologies for any awkwardness.

make python version checks consistent
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

1 participant