[issue45434] [C API] Clean-up the Python.h header file

2021-10-19 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45434] [C API] Clean-up the Python.h header file

2021-10-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset 52af0756b2ffc6788e364971d05cdaf127d77d5a by Victor Stinner in branch 'main': bpo-45434: Only exclude in Python 3.11 limited C API (GH-29027) https://github.com/python/cpython/commit/52af0756b2ffc6788e364971d05cdaf127d77d5a --

[issue45434] [C API] Clean-up the Python.h header file

2021-10-18 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27298 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/29027 ___ Python tracker ___

[issue45434] [C API] Clean-up the Python.h header file

2021-10-18 Thread STINNER Victor
STINNER Victor added the comment: I reopen the issue. -- resolution: fixed -> status: closed -> open ___ Python tracker ___ ___

[issue45434] [C API] Clean-up the Python.h header file

2021-10-18 Thread Thomas Wouters
Thomas Wouters added the comment: Victor, what's the benefit of doing this work? Are there real problems this fixes? I'm worried about the churn in third-party extensions, examples, tutorials, etc, especially for audiences that upon seeing a compiler error won't immediately realise they

[issue45434] [C API] Clean-up the Python.h header file

2021-10-18 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset fd03917786a9036ee87b7df604dfb260cc2420c9 by Dong-hee Na in branch 'main': bpo-45434: Include stdlib.h for specialize stat (GH-29015) https://github.com/python/cpython/commit/fd03917786a9036ee87b7df604dfb260cc2420c9 --

[issue45434] [C API] Clean-up the Python.h header file

2021-10-18 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 nosy_count: 1.0 -> 2.0 pull_requests: +27295 pull_request: https://github.com/python/cpython/pull/29015 ___ Python tracker ___

[issue45434] [C API] Clean-up the Python.h header file

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 105582e74c1817bc6a9d99bcb6540b34a3367292 by Victor Stinner in branch 'main': bpo-45434: Remove Include/eval.h header file (GH-28973) https://github.com/python/cpython/commit/105582e74c1817bc6a9d99bcb6540b34a3367292 --

[issue45434] [C API] Clean-up the Python.h header file

2021-10-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27261 pull_request: https://github.com/python/cpython/pull/28973 ___ Python tracker ___

[issue45434] [C API] Clean-up the Python.h header file

2021-10-15 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45434] [C API] Clean-up the Python.h header file

2021-10-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7076bef8ba8836a19d5033f4ceb8eb9837de2301 by Victor Stinner in branch 'main': bpo-45434: Remove useless space in includes (GH-28963) https://github.com/python/cpython/commit/7076bef8ba8836a19d5033f4ceb8eb9837de2301 --

[issue45434] [C API] Clean-up the Python.h header file

2021-10-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27252 pull_request: https://github.com/python/cpython/pull/28963 ___ Python tracker ___

[issue45434] [C API] Clean-up the Python.h header file

2021-10-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 284994762d820d8e09cc019f8f7c4bc501e37dd4 by Victor Stinner in branch 'main': bpo-45434: Limited Python.h no longer includes stdio.h (GH-28960) https://github.com/python/cpython/commit/284994762d820d8e09cc019f8f7c4bc501e37dd4 --

[issue45434] [C API] Clean-up the Python.h header file

2021-10-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27249 pull_request: https://github.com/python/cpython/pull/28960 ___ Python tracker ___

[issue45434] [C API] Clean-up the Python.h header file

2021-10-14 Thread STINNER Victor
STINNER Victor added the comment: I tried to remove the include from Python.h: -#include// memcpy() ... but it required me to modify 100+ files. I don't know the exact number, I gave up after 100 files. I was near half of C extensions built by setup.py, so the number total

[issue45434] [C API] Clean-up the Python.h header file

2021-10-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset aac29af6785712019d34f1a7f15b3c408a4f68ae by Victor Stinner in branch 'main': bpo-45434: pyport.h no longer includes (GH-28914) https://github.com/python/cpython/commit/aac29af6785712019d34f1a7f15b3c408a4f68ae --

[issue45434] [C API] Clean-up the Python.h header file

2021-10-13 Thread STINNER Victor
STINNER Victor added the comment: PyRun_InteractiveOneObjectEx() returns a single error code of errcode.h: E_EOF (11): if (mod == NULL) { _PyArena_Free(arena); if (errcode == E_EOF) { PyErr_Clear(); return E_EOF; } return -1; }

[issue45434] [C API] Clean-up the Python.h header file

2021-10-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset 713bb19356bce9b8f2b95461834fe1dae505f889 by Victor Stinner in branch 'main': bpo-45434: Mark the PyTokenizer C API as private (GH-28924) https://github.com/python/cpython/commit/713bb19356bce9b8f2b95461834fe1dae505f889 --

[issue45434] [C API] Clean-up the Python.h header file

2021-10-13 Thread STINNER Victor
STINNER Victor added the comment: Oh, Include/errcode.h *is* used by PyRun_InteractiveOneFlags() and its variants. It's mentioned in its documentation: Returns ``0`` when the input was executed successfully, ``-1`` if there was an exception, or an error code from the

[issue45434] [C API] Clean-up the Python.h header file

2021-10-13 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27214 pull_request: https://github.com/python/cpython/pull/28924 ___ Python tracker ___

[issue45434] [C API] Clean-up the Python.h header file

2021-10-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset bbe7497c5a44c2b4ec726605cf5a9086ba02daf1 by Victor Stinner in branch 'main': bpo-45434: Remove pystrhex.h header file (GH-28923) https://github.com/python/cpython/commit/bbe7497c5a44c2b4ec726605cf5a9086ba02daf1 --

[issue45434] [C API] Clean-up the Python.h header file

2021-10-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset 97308dfcdc0696e0b116c37386e2ff4d72e6c3f4 by Victor Stinner in branch 'main': bpo-45434: Move _Py_BEGIN_SUPPRESS_IPH to pycore_fileutils.h (GH-28922) https://github.com/python/cpython/commit/97308dfcdc0696e0b116c37386e2ff4d72e6c3f4 --

[issue45434] [C API] Clean-up the Python.h header file

2021-10-13 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27213 pull_request: https://github.com/python/cpython/pull/28923 ___ Python tracker ___

[issue45434] [C API] Clean-up the Python.h header file

2021-10-13 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27212 pull_request: https://github.com/python/cpython/pull/28922 ___ Python tracker ___

[issue45434] [C API] Clean-up the Python.h header file

2021-10-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset c63623a0a6892ce8683dbf8c769793ea897e6ba8 by Victor Stinner in branch 'main': bpo-45434: bytearrayobject.h no longer includes (GH-28913) https://github.com/python/cpython/commit/c63623a0a6892ce8683dbf8c769793ea897e6ba8 --

[issue45434] [C API] Clean-up the Python.h header file

2021-10-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27204 pull_request: https://github.com/python/cpython/pull/28914 ___ Python tracker ___

[issue45434] [C API] Clean-up the Python.h header file

2021-10-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 489176e4285314f9ea87b8bd91fe1d55d9af2c42 by Victor Stinner in branch 'main': bpo-45434: Convert Py_GETENV() macro to a function (GH-28912) https://github.com/python/cpython/commit/489176e4285314f9ea87b8bd91fe1d55d9af2c42 --

[issue45434] [C API] Clean-up the Python.h header file

2021-10-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27203 pull_request: https://github.com/python/cpython/pull/28913 ___ Python tracker ___

[issue45434] [C API] Clean-up the Python.h header file

2021-10-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27202 pull_request: https://github.com/python/cpython/pull/28912 ___ Python tracker ___

[issue45434] [C API] Clean-up the Python.h header file

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset 03ea862b8a8234176761240ba122254e9eb11663 by Victor Stinner in branch 'main': bpo-45434: Python.h no longer includes (GH-2) https://github.com/python/cpython/commit/03ea862b8a8234176761240ba122254e9eb11663 --

[issue45434] [C API] Clean-up the Python.h header file

2021-10-11 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27183 pull_request: https://github.com/python/cpython/pull/2 ___ Python tracker ___

[issue45434] [C API] Clean-up the Python.h header file

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset 47717d1186563695e798b40350d15b00d04a5237 by Victor Stinner in branch 'main': bpo-45434: Cleanup Python.h header file (GH-28883) https://github.com/python/cpython/commit/47717d1186563695e798b40350d15b00d04a5237 --

[issue45434] [C API] Clean-up the Python.h header file

2021-10-11 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +27180 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28883 ___ Python tracker ___

[issue45434] [C API] Clean-up the Python.h header file

2021-10-11 Thread STINNER Victor
New submission from STINNER Victor : I would like to remove #include from Python.h, and make Python.h smaller. -- components: C API messages: 403675 nosy: vstinner priority: normal severity: normal status: open title: [C API] Clean-up the Python.h header file versions: Python 3.11