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

gh-129559: Add bytearray.resize() #129560

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Conversation

cmaloney
Copy link
Contributor

@cmaloney cmaloney commented Feb 1, 2025

Add bytearray.resize() which wraps PyByteArray_Resize.

Make negative size passed to resize exception/error rather than crash in optimized builds.


📚 Documentation preview 📚: https://cpython-previews--129560.org.readthedocs.build/

Add `bytearray.resize()` which wraps `PyByteArray_Resize`
@cmaloney
Copy link
Contributor Author

cmaloney commented Feb 2, 2025

@vstinner I think this is ready for review if bytearray.resize seems like a reasonable feature add.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant