Skip to content

Conversation

ilevkivskyi
Copy link
Member

Currently Buffer(b"") (as opposite to Buffer()) can go into an infinite loop when resizing. Fix this by allocating one more byte, that is conveniently guaranteed by bytes ABI.

I also move the librt/__init__.py hack to tests, since this is the only place where it is needed. I am still not sure why *.so from site-packages is preferred over a "local" namespace package with the same *.so.

@ilevkivskyi ilevkivskyi merged commit 59e9e7d into python:master Oct 8, 2025
13 checks passed
@ilevkivskyi ilevkivskyi deleted the fix-empty-buffer branch October 8, 2025 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant