Skip to content
New issue

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

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

Already on GitHub? Sign in 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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