Skip to content

Py_buffer::format is implemented as char* instead of const char* #94916

Closed as duplicate

Description

@maxbachmann

Bug report

The format member in Py_buffer is documented to have the type const char*. However the actual type is char*:

char *format;

Activity

  1. added
    type-bug
    on Jul 17, 2022
  2. added
    interpreter-core
    on Dec 1, 2023
  3. added
    docs
    on Aug 18, 2025
  4. cmaloney commented on Nov 9, 2025

    @cmaloney
    Contributor

    This is fixed for Python 3.12+ by gh-119467; Another contributor came across the same issue and contributed a patch.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsinterpreter-coretype-bug

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions