aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/python-extension-module-visibility.md
AgeCommit message (Collapse)AuthorFilesLines
2022-07-03Finalize the release.0.63.0Jussi Pakkanen1-12/+0
2022-05-09python module: default extensions to hidden symbol visibilityEli Schwartz1-0/+12
python compiled extensions should never need to expose any symbol other than PyInit_* which is declared with default visibility via PyMODINIT_FUNC on supported compilers. Thus, a reasonably sane default is to mark any other symbols as hidden, while still respecting any manually specified visibility. Gate this on the version of python itself, as not all versions decorate PyMODINIT_FUNC properly.