Skip to content

docs: add PyO3/Rust guidelines#16590

Open
brettlangdon wants to merge 5 commits intomainfrom
brettlangdon/pyo3.perf.knowledge
Open

docs: add PyO3/Rust guidelines#16590
brettlangdon wants to merge 5 commits intomainfrom
brettlangdon/pyo3.perf.knowledge

Conversation

@brettlangdon
Copy link
Member

Description

Testing

Risks

Additional Notes

@brettlangdon brettlangdon requested a review from a team as a code owner February 19, 2026 18:25
@brettlangdon brettlangdon added the changelog/no-changelog A changelog entry is not required for this PR. label Feb 19, 2026
@brettlangdon brettlangdon requested a review from a team as a code owner February 19, 2026 18:26
@cit-pr-commenter-54b7da
Copy link

cit-pr-commenter-54b7da bot commented Feb 19, 2026

Codeowners resolved as

docs/spelling_wordlist.txt                                              @DataDog/python-guild

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 755fd42b75

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

to prevent the GC from collecting it while Rust holds a pointer.

.. code-block:: rust

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have read the &strs assigned to a PyString borrow the memory of the PyString to avoid copies. Maybe something to add here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/no-changelog A changelog entry is not required for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments