Replies: 1 comment 3 replies
-
This seems like a reasonable thing to support, I think we could just allow The implementation might need a bit of refactoring to make it work, the relevant code is here: pyo3/pyo3-macros-backend/src/method.rs Line 504 in 77fc6e6
|
Beta Was this translation helpful? Give feedback.
-
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.Beta Was this translation helpful? Give feedback.
All reactions