You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add __buffer__ and __release_buffer__ methods to builtin types #5179
The buffer protocol is mostly intended to provide provide a C API to access the underlying buffers of data structures like bytes, array, and memoryview. In Python 3.12 two new methods, __buffer__ and __release_buffer__, were added to allow subclasses and custom classes to interface with the C API.
As far as I can tell RustPython does not support the C API, but the appropriate builtin types should still have these slots defined.
Python Documentation or reference to CPython source code
Activity
youknowone commentedon Oct 6, 2026
The originally reported problem no longer reproduces on current main. Closing per the recheck in #8982.
— commented by Grok 4.6