]> granicus.if.org Git - python/commit
bpo-35081: Add _PyCoreConfig_AsDict() (GH-10362)
authorVictor Stinner <vstinner@redhat.com>
Tue, 6 Nov 2018 14:59:52 +0000 (15:59 +0100)
committerGitHub <noreply@github.com>
Tue, 6 Nov 2018 14:59:52 +0000 (15:59 +0100)
commit5ed6995675b084fe583b71f96fdde4413bb2a77b
tree9fad4275372695bed69eb03f35cc49bceb8e3d0c
parentf1b9ad3d38c11676b45edcbf2369239bae436e56
bpo-35081: Add _PyCoreConfig_AsDict() (GH-10362)

_testcapimodule.c must not include pycore_pathconfig.h, since it's an
internal header files.

Changes:

* Add _PyCoreConfig_AsDict() function to coreconfig.c.
* Remove pycore_pathconfig.h include from _testcapimodule.h.
* pycore_pathconfig.h now requires Py_BUILD_CORE to be defined.
* _testcapimodule.c compilation now fails if it's built with
  Py_BUILD_CORE defined.
Include/coreconfig.h
Include/internal/pycore_pathconfig.h
Modules/_testcapimodule.c
Python/coreconfig.c