Skip to content
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

PyCode_New and PyCode_NewWithPosOnlyArgs are going away in CPython 3.11 #1203

Closed
da-woods opened this issue Sep 7, 2021 · 3 comments
Closed
Assignees
Labels

Comments

@da-woods
Copy link

da-woods commented Sep 7, 2021

See https://bugs.python.org/issue45122

Posting here as advance notice because you look to use this API to generate tracebacks (similar to Cython and MyPyc).

The alternative options at the moment appear to be the internal _PyCode_New or PyCode_NewEmpty followed by code.replace()

@vstinner
Copy link

vstinner commented Sep 7, 2021

The alternative options at the moment appear to be the internal _PyCode_New

Hum, it's not a good idea to rely on the private C API.

PyCode_NewEmpty() is public ;-)

@kayhayen kayhayen added the delayed This is waiting for something else to be done first. label Sep 9, 2021
@kayhayen
Copy link
Member

kayhayen commented Sep 9, 2021

Nuitka is not very shy with private CPython APIs, that I can tell you. But so far, 3.10 is not yet fully supported, so this is in the far future. Thanks for pointing it out, having a myriad of things to provide is ugly indeed.

@kayhayen
Copy link
Member

I don't think I noticed this, unfortunately to me this was just noise. Rather than remove it, Python 3.11 added a new argument.

@kayhayen kayhayen added invalid and removed delayed This is waiting for something else to be done first. labels Mar 12, 2023
@kayhayen kayhayen self-assigned this Mar 12, 2023
@Nuitka Nuitka locked and limited conversation to collaborators Oct 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants