Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyObject_Format c-api function is not documented #102595

Closed
sobolevn opened this issue Mar 11, 2023 · 1 comment
Closed

PyObject_Format c-api function is not documented #102595

sobolevn opened this issue Mar 11, 2023 · 1 comment
Assignees
Labels
docs Documentation in the Doc dir type-feature A feature request or enhancement

Comments

@sobolevn
Copy link
Member

sobolevn commented Mar 11, 2023

Documentation

I think it must be, for the following reasons:

  1. It is a stable API that exists since python3
  2. It is implementing a builtin magic method __format__
  3. It is quite useful for others
  4. It is quite simple
  5. There are no plans to remove / deprecate it
  6. It is used in some parts of docs, example: https://github.com/python/cpython/blame/5ffdaf748d98da6065158534720f1996a45a0072/Doc/library/dis.rst#L1426

I will send a PR.

Linked PRs

@sobolevn sobolevn added type-feature A feature request or enhancement docs Documentation in the Doc dir labels Mar 11, 2023
@sobolevn sobolevn self-assigned this Mar 11, 2023
sobolevn added a commit to sobolevn/cpython that referenced this issue Mar 11, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Mar 21, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Mar 21, 2023
miss-islington added a commit that referenced this issue Mar 22, 2023
… (GH-102879)

(cherry picked from commit 910a64e)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Def: https://github.com/python/cpython/blame/5ffdaf748d98da6065158534720f1996a45a0072/Include/abstract.hGH-L389

Automerge-Triggered-By: GH:encukou
@encukou
Copy link
Member

encukou commented Mar 22, 2023

Thank for the docs!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants