Skip to content

Fix the build break for python3.7 PyUnicode_AsUTF8AndSize() prototype changing#9259

Closed
JerryShih wants to merge 1 commit intopytorch:masterfrom
JerryShih:caffe2-python3.7-build-break
Closed

Fix the build break for python3.7 PyUnicode_AsUTF8AndSize() prototype changing#9259
JerryShih wants to merge 1 commit intopytorch:masterfrom
JerryShih:caffe2-python3.7-build-break

Conversation

@JerryShih
Copy link
Contributor

https://docs.python.org/3.7/c-api/unicode.html#c.PyUnicode_AsUTF8AndSize
The return type changes from "char*" to "const char*".

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@pjh5 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@pjh5 pjh5 self-assigned this Jul 9, 2018
goodlux pushed a commit to goodlux/pytorch that referenced this pull request Aug 15, 2018
… changing (pytorch#9259)

Summary:
https://docs.python.org/3.7/c-api/unicode.html#c.PyUnicode_AsUTF8AndSize
The return type changes from "char*" to "const char*".
Pull Request resolved: pytorch#9259

Reviewed By: orionr

Differential Revision: D8776219

Pulled By: pjh5

fbshipit-source-id: e5eadf71264002ba57cfb68dd39686a7ec074092
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants