GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Py_buffer::format is implemented as `char*` instead of `const char*` · Issue #94916 · python/cpython

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

New issue
Copy link
New issue
Copy link
Closed as duplicate
Closed as duplicate
Py_buffer::format is implemented as char* instead of const char*#94916
Copy link
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dirinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@maxbachmann
maxbachmann
opened on Jul 17, 2022
Issue body actions

Bug report

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

cpython/Include/pybuffer.h

Line 28 in ec091bd

char *format;

Activity

  1. maxbachmann
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Jul 17, 2022
  2. iritkatriel
    added
    interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)
    on Dec 1, 2023
  3. StanFromIreland
    added
    docsDocumentation in the Doc dirDocumentation in the Doc dir
    on Aug 18, 2025
  4. github-project-automation
    added this to docs issueson Aug 18, 2025
  5. github-project-automation
    moved this to Todo in docs issueson Aug 18, 2025
  6. cmaloney commented on Nov 9, 2025

    @cmaloney
    cmaloney
    on Nov 9, 2025
    Contributor
    More actions

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

  7. cmaloney
    closed this as a duplicateof Py_buffer.format declaration inconsistent with the docs #119467 on Nov 9, 2025
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

    docsDocumentation in the Doc dirDocumentation in the Doc dirinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    • docs issues
      Status
      Todo
      Show more project fields

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.