mirror of
https://github.com/python/cpython.git
synced 2026-11-09 06:00:54 +08:00
gh-154523 turned the buffer member descriptor into a getter that raises ValueError when the buffer is NULL, and the backport shipped in 3.14.9 and 3.15.1. That made hasattr(stream, "buffer") raise after detach(). Restore the old member descriptor result (None) while keeping the critical section. (cherry picked from commit 3422197f5481ac1b3134e2633332415a02959ba4) Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>