PyO3 / PyO3/pyo3

Doc Improvements: `IntoPyObject` actually supports `item` / `attribute` attributes

Open
#5,709 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

documentation
Dominant language
Rust
Stars
16.2k
Forks
1k
Avg merge
2d 6h
Merged PRs (30d)
66

Description

I’ve confirmed through the source code and #5070 that the IntoPyObject derive macro supports the same field attributes as FromPyObject.

However, the doc only mentions these under the FromPyObject section, making it look like IntoPyObject is not customizable.

As I'm still new to PyO3, I'd prefer if someone more experienced handled the documentation update to ensure all technical details are correct.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the conversions/traits documentation linked in the issue, then compare its FromPyObject field-attribute section with the IntoPyObject derive behavior in the source and issue #5070. Update the documentation so IntoPyObject's support for item and attribute attributes is explicit, and confirm the technical details match the implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.