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

PyObjectProtocol::get_type_ptr() #242

Merged
merged 1 commit into from
Oct 3, 2018
Merged

PyObjectProtocol::get_type_ptr() #242

merged 1 commit into from
Oct 3, 2018

Conversation

ijl
Copy link
Contributor

@ijl ijl commented Oct 3, 2018

This is a getter for ob_type, without instantiating a PyType.

@kngwyu
Copy link
Member

kngwyu commented Oct 3, 2018

What is the expected usage of this method?

@ijl
Copy link
Contributor Author

ijl commented Oct 3, 2018

It allows a user to optimize checking that two instances are the exact same type.

@konstin
Copy link
Member

konstin commented Oct 3, 2018

Thank you!

@konstin konstin merged commit b5902af into PyO3:master Oct 3, 2018
@ijl ijl deleted the get-type-ptr branch October 3, 2018 19:42
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.

None yet

3 participants