Skip to content

Python C API Deprecations #2588

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

Open
7 tasks
Avasam opened this issue Apr 29, 2025 · 1 comment
Open
7 tasks

Python C API Deprecations #2588

Avasam opened this issue Apr 29, 2025 · 1 comment

Comments

@Avasam
Copy link
Collaborator

Avasam commented Apr 29, 2025

I extracted those from the current warning C4996: 'xx': deprecated in 3.xx build messages.

Deprecated since Python 3.11:

Deprecated since Python 3.12:

Deprecated since Python 3.13:

All of the above are Pending removal in Python 3.15 (if not pushed back further).

Deprecated since Python 3.14 (Pending removal in Python 3.18):


Because of the replacements are late additions, we may not be able to resolve them immediately. If the signatures / usage are close enough, a simple macro could do.

@Avasam
Copy link
Collaborator Author

Avasam commented Apr 30, 2025

PySys_SetArgv is also used by SWIG 1.1 which we use. But only in python/embed.i, python/embed13.i and python/embed14.i .
python/embed.i and python/embed13.i are included by autodoc.i

It doesn't look like autodoc.i is referenced anywhere. The code still builds without those files. So those instances should be safe to ignore (or just drop the vendored files, until we update/revendor SWIG).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant