8000 BUG: fix header using symbols not available in py3 by juliantaylor · Pull Request #5257 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BUG: fix header using symbols not available in py3 #5257

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

Merged
merged 1 commit into from
Nov 2, 2014

Conversation

juliantaylor
Copy link
Contributor

Inside numpy we handle this via the py3kcompat header which is not
really public api. So for our public headers we need some explicit checks.

8000 @juliantaylor
Copy link
Contributor Author

is there some policy against not including Python.h in our headers? as none do so, though they use stuff defined in Python.h

@charris
Copy link
Member
charris commented Nov 2, 2014

There is no policy that I know of. If they use stuff from the header, they should probably include it ;)

Inside numpy we handle this via the py3kcompat header which is not
really public api. So for our public headers we need some explicit
checks.
@juliantaylor
Copy link
Contributor Author

added the include

A2B8
charris added a commit that referenced this pull request Nov 2, 2014
BUG: fix header using symbols not available in py3
@charris charris merged commit cfa095a into numpy:master Nov 2, 2014
@charris
Copy link
Member
charris commented Nov 2, 2014

Thanks, Now that Python.h is included in ndarrayobject.h we could probably remove includes in other places. The numpy headers are kind of a mess and need a rationalization at some point...

@juliantaylor juliantaylor deleted the py3-header-fix branch November 2, 2014 17:05
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
0