pyo3 icon indicating copy to clipboard operation
pyo3 copied to clipboard

Allow `#[new]` to return existing objects

Open davidhewitt opened this issue 3 years ago • 0 comments

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

davidhewitt avatar May 17 '22 07:05 davidhewitt