Miss Islington (bot) 4af98bdb94
[3.15] gh-160427: Return None from TextIOWrapper.buffer when detached (GH-160802) (#161449)
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>
2026-11-05 14:29:49 -08:00
..
…
…
…