Support IntoPyObject for Arc in pyclass for pyo3(get)
Open
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 16.2k
- Forks
- 1k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 66
Description
I defined a class
#[pyclass(get_all)]
class MyClass {
inner: Arc<Vec<String>>,
}
and I got the error below
`std::sync::Arc<std::vec::Vec<std::string::String>>` cannot be converted to a Python objec
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the pyclass(get) getter conversion path and the IntoPyObject implementations relevant to Arc<Vec>. Reproduce the issue with the MyClass example, then verify that the Arc-wrapped value converts to a Python object without the reported error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, rust
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100