pyo3
pyo3 copied to clipboard
Allow `#[new]` to return existing objects
I don't think it's possible for #[new] in PyO3 to return an existing object (at the moment), though it really should be.
Originally posted by @davidhewitt in https://github.com/PyO3/pyo3/discussions/2382#discussioncomment-2765288