Skip to content

cffi: Let Python3 handles string as ASCII. #115

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

Closed
wants to merge 1 commit into from

Conversation

corona10
Copy link
Collaborator

@corona10 corona10 commented Jul 2, 2017

This is a temporary patch for Python3.
We have to update it to handle string as Unicode.
For Python2, I plan to set the default encoding with Unicode.

@corona10 corona10 changed the title Let Python3 handles string as ASCII. cffi: Let Python3 handles string as ASCII. Jul 2, 2017
@corona10
Copy link
Collaborator Author

corona10 commented Jul 4, 2017

@sbinet PTAL

@sbinet
Copy link
Member

sbinet commented Jul 4, 2017

thanks.
I'll review ASAP (I am at a conference: jdev2017.fr, at the moment, so I may lag a bit...)

@corona10
Copy link
Collaborator Author

corona10 commented Jul 4, 2017

np :)

Copy link
Member

@sbinet sbinet left a comment

Choose a reason for hiding this comment

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

LGTM modulo small comment

bind/gencffi.go Outdated
import cffi as _cffi_backend

PY3 = sys.version_info[0] == 3
Copy link
Member

Choose a reason for hiding this comment

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

perhaps better to unexport it (s/PY3/_PY3/g) ?

@corona10
Copy link
Collaborator Author

Thanks for the review!

Updated!

@sbinet
Copy link
Member

sbinet commented Jul 12, 2017

closed with f5e31a2.

thanks.

@sbinet sbinet closed this Jul 12, 2017
@corona10 corona10 deleted the py3-ascii branch July 14, 2017 05:24
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