-
Notifications
You must be signed in to change notification settings - Fork 763
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
#[new]
which is also a #[classmethod]
#3077
Comments
davidhewitt
changed the title
Apr 1, 2023
#[new]
which is also a classmethod #[classmethod]
#[new]
which is also a #[classmethod]
Have you already started this? I can look at it today if not. |
I have not, please go ahead, thanks! I think the challenge is that we currently special case new in the backend (see |
Posted over here: #3157 ... thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Discussed in #3075
Originally posted by adriangb March 29, 2023
As far as I can tell,
#[new]
has to be a static method. It's a classmethod in Python, could it be made the same in PyO3? Context: I'd like to get the class name as seen by Python for the failure case of calling new.The text was updated successfully, but these errors were encountered: