Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bpo-19569: Add a macro to suppress deprecation warnings (counterpart of Py_DEPRECATED())#9004

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@ZackerySpytz
Copy link
Contributor

@ZackerySpytzZackerySpytz commentedAug 29, 2018
edited by bedevere-bot
Loading

Co-Authored-By: Arfrever Frehtes Taifersar Arahesisarfrever.fta@gmail.com

https://bugs.python.org/issue19569

…of Py_DEPRECATED())Co-Authored-By: Arfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com>
Copy link
Contributor

@jdemeyerjdemeyer left a comment

Choose a reason for hiding this comment

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

I think you should explain more clearly why this is needed.

@ZackerySpytz
Copy link
ContributorAuthor

These macros can be used to locally suppress deprecation warnings if a deprecated C API function needs to be used. There was some relevant discussion on the BPO issue.

@jdemeyer
Copy link
Contributor

There was some relevant discussion on the BPO issue.

Could you give a more concrete pointers? I didn't find the justification for this PR.

@methane
Copy link
Member

Could you give a more concrete pointers? I didn't find the justification for this PR.

When I uncommentPy_DEPRECATED macros in Include/cpython/unicodeobject.h,
I see some warning in_testcapimodule.c.

@methane
Copy link
Member

It seems these macros are too much.
I just want aPy_SUPRESS_DEPRECATED_DECLS macro.

@methane
Copy link
Member

@ZackerySpytz Would you make these macros private? (e.g. adding _ prefix).
I want to use it in Python 3.9, but I don't want to add public API to 3.9.

@miss-islington
Copy link
Contributor

Thanks@ZackerySpytz for the PR, and@methane for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-20907 is a backport of this pull request to the3.9 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestJun 16, 2020
Co-authored-by: Arfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com>(cherry picked from commitde4304d)Co-authored-by: Zackery Spytz <zspytz@gmail.com>
miss-islington added a commit that referenced this pull requestJun 17, 2020
Co-authored-by: Arfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com>(cherry picked from commitde4304d)Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@jdemeyerjdemeyerjdemeyer left review comments

@serhiy-storchakaserhiy-storchakaAwaiting requested review from serhiy-storchaka

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

6 participants

@ZackerySpytz@jdemeyer@methane@miss-islington@bedevere-bot@the-knights-who-say-ni

[8]ページ先頭

©2009-2025 Movatter.jp