Skip to content

PyObject_Format c-api function is not documented #102595

Closed
@sobolevn

Description

@sobolevn

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

Metadata

Metadata

Assignees

Labels

docsDocumentation in the Doc dirtype-featureA feature request or enhancement

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions