bpo-35134: Move classobject.h to Include/cpython/ by vstinner · Pull Request #28968 · python/cpython (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation2 Commits1 Checks0 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

vstinner

Move classobject.h, context.h, genobject.h and longintrepr.h header
files from Include/ to Include/cpython/.

Remove redundant "#ifndef Py_LIMITED_API" in context.h.

Remove explicit #include "longintrepr.h" in C files. It's not needed,
Python.h already includes it.

https://bugs.python.org/issue35134

@vstinner

Move classobject.h, context.h, genobject.h and longintrepr.h header files from Include/ to Include/cpython/.

Remove redundant "#ifndef Py_LIMITED_API" in context.h.

Remove explicit #include "longintrepr.h" in C files. It's not needed, Python.h already includes it.

ShivnarenSrinivasan pushed a commit to ShivnarenSrinivasan/cpython that referenced this pull request

Oct 15, 2021

@vstinner @ShivnarenSrinivasan

Move classobject.h, context.h, genobject.h and longintrepr.h header files from Include/ to Include/cpython/.

Remove redundant "#ifndef Py_LIMITED_API" in context.h.

Remove explicit #include "longintrepr.h" in C files. It's not needed, Python.h already includes it.

tacaswell added a commit to tacaswell/cython that referenced this pull request

Oct 28, 2021

@tacaswell

tacaswell added a commit to tacaswell/cython that referenced this pull request

Oct 28, 2021

@tacaswell

scoder pushed a commit to cython/cython that referenced this pull request

Oct 31, 2021

@tacaswell

scoder pushed a commit to cython/cython that referenced this pull request

Oct 31, 2021

@tacaswell @scoder

@KaeLL KaeLL mentioned this pull request

Nov 8, 2022

3 tasks

@ghost ghost mentioned this pull request

Nov 17, 2023

@lexson-luo

"Remove explicit #include "longintrepr.h" in C files. It's not needed,
Python.h already includes it." may i check which C files has this line? and which are those C files located?

@vstinner

may i check which C files has this line? and which are those C files located?

You can search for # *include.*longintrepr regular expression. For example, on Linux, find -name '*.c' -print0|xargs -0 grep -l -E '# *include.*longintrepr' lists C files which include this header file.

@Eiim Eiim mentioned this pull request

Jul 8, 2024