Skip to content

[3.9] bpo-40939: Do not emit deprecation warnings inside CPython for old parser APIs #21025

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

Merged
merged 1 commit into from
Jun 21, 2020

Conversation

pablogsal
Copy link
Member

@pablogsal pablogsal commented Jun 21, 2020

Copy link
Member

@lysnikolaou lysnikolaou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not familiar with diagnostic pragmas, so I'm not the most suited to review this.

@nnemkin
Copy link
Contributor

nnemkin commented Jun 21, 2020

Consider doing this instead (in the header file):

#ifndef Py_BUILD_CODE
Py_DEPRECATED(3.9)
#endif
PyAPI_FUNC(struct _node *) PyParser_...

@pablogsal
Copy link
Member Author

Consider doing this instead (in the header file):

Good point!

@pablogsal pablogsal force-pushed the deprecation_warnings branch from 21b84dd to e85ba58 Compare June 21, 2020 18:24
@pablogsal pablogsal merged commit 5b1a311 into python:3.9 Jun 21, 2020
@pablogsal pablogsal deleted the deprecation_warnings branch May 19, 2021 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants