Skip to content

Py_buffer.format declaration inconsistent with the docs #119467

Description

@philthompson10

Bug report

Bug description:

The declaration of the format field of the Py_buffer structure is char * but the documentation states it is const char *.

IMHO the declaration should be changed to match the docs.

CPython versions tested on:

3.8, 3.9, 3.10, 3.11, 3.12, 3.13

Operating systems tested on:

Linux, macOS, Windows

Linked PRs

Activity

  1. Eclips4 commented on May 23, 2024

    @Eclips4
    Member

    Hello!
    Would you like to send a PR with fix? :)

  2. added
    3.12only security fixes
    3.13only security fixes
    3.14bugs and security fixes
    on May 23, 2024
  3. philthompson10 commented on May 23, 2024

    @philthompson10
    Author

    I'd like to - may take a while...

  4. adiaholic commented on May 23, 2024

    @adiaholic
    Contributor

    I have pushed a fix for this inconsistency. It would be great if @Eclips4 could review the changes and confirm if this resolves the issue.

    Feedback is highly appreciated!

  5. added a commit that references this issue on May 27, 2024
  6. added 2 commits that reference this issue on May 27, 2024
  7. added 2 commits that reference this issue on May 27, 2024
  8. added a commit that references this issue on Jul 17, 2024
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

    3.12only security fixes3.13only security fixes3.14bugs and security fixesdocsDocumentation in the Doc direasytopic-C-APItype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions