Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Signature for __release_buffer__ is incorrect #104955

Closed
JelleZijlstra opened this issue May 26, 2023 · 0 comments · Fixed by #104956
Closed

Signature for __release_buffer__ is incorrect #104955

JelleZijlstra opened this issue May 26, 2023 · 0 comments · Fixed by #104956
Assignees
Labels
3.12 bugs and security fixes 3.13 bugs and security fixes type-bug An unexpected behavior, bug, or error

Comments

@JelleZijlstra
Copy link
Member

JelleZijlstra commented May 26, 2023

Currently the signature for PEP-688's __release_buffer__ method is as follows:

>>> bytearray.__release_buffer__.__text_signature__
'($self, /)'

This is incorrect; the method takes a single argument that according to the PEP should be called buffer.

Linked PRs

@JelleZijlstra JelleZijlstra added type-bug An unexpected behavior, bug, or error 3.12 bugs and security fixes 3.13 bugs and security fixes labels May 26, 2023
@JelleZijlstra JelleZijlstra self-assigned this May 26, 2023
JelleZijlstra added a commit to JelleZijlstra/cpython that referenced this issue May 26, 2023
JelleZijlstra added a commit that referenced this issue May 26, 2023
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue May 26, 2023
(cherry picked from commit 6e1eccd)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
JelleZijlstra added a commit that referenced this issue May 26, 2023
(cherry picked from commit 6e1eccd)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
3.12 bugs and security fixes 3.13 bugs and security fixes type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant