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

python: deprecate some redundant methods #1292

Merged
merged 1 commit into from
Nov 23, 2020

Conversation

davidhewitt
Copy link
Member

This PR deprecates Python::is_instance, Python::is_subclass, Python::release, and Python::xdecref. (Follow up to #1276 plus a little extra.)

All these methods have simpler alternatives, so I see no reason for us to keep them around.

I moved all the deprecated methods to the bottom and also moved some unsafe functions lower in the file, which will put the methods we actually want users to read at the top of the docs.

Copy link
Member

@kngwyu kngwyu left a comment

Choose a reason for hiding this comment

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

Thanks!

@kngwyu kngwyu merged commit 6465766 into PyO3:master Nov 23, 2020
@davidhewitt davidhewitt deleted the python-deprecations branch December 24, 2021 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants