Skip to content

Py_buffer.format declaration inconsistent with the docs #119467

Closed

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. added
    type-bug
    on May 23, 2024
  2. added
    docs
    on May 23, 2024
  3. Eclips4 commented on May 23, 2024

    @Eclips4
    Member

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

  4. added
    3.12
    3.13
    3.14
    on May 23, 2024
  5. philthompson10 commented on May 23, 2024

    @philthompson10
    Author

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

  6. 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!

  7. added a commit that references this issue on May 27, 2024
  8. added 2 commits that reference this issue on May 27, 2024
  9. added 2 commits that reference this issue on May 27, 2024
  10. 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.123.133.14docseasytopic-C-APItype-bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions