We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Simple reproducer:
#[pyo3::prelude::pyclass] enum Foo { E1, E2, } #[pyo3::prelude::pyfunction pub fn get_foo() -> Foo { Foo::E1 }
if you wire this up, and call it from Python, you'll find that get_foo() is get_foo() is False.
get_foo() is get_foo()
False
It would be useful if these always had the same identity, as this would more closely mirror the pure python enum module's behavior.
enum
The text was updated successfully, but these errors were encountered:
Is this possibly a duplicate of #3059? (With the resolution #3061 being underway.)
Sorry, something went wrong.
Yuuuup. Sorry about the news. Apparently 9am is too early for me to know how to search.
No branches or pull requests
Simple reproducer:
if you wire this up, and call it from Python, you'll find that
get_foo() is get_foo()
isFalse
.It would be useful if these always had the same identity, as this would more closely mirror the pure python
enum
module's behavior.The text was updated successfully, but these errors were encountered: