bpo-26175: Fix SpooledTemporaryFile IOBase abstract by GFernie · Pull Request #3249 · python/cpython
One would assume that this class implements the IOBase abstract. As the underlying file-like object is either io.BytesIO, io.StringIO, or a true file object, this is a reasonable abstract expect and to implement. Regardless, the behaviour of this class does not change much in the case of the attribute being missing from the underlying file-like; an AttributeError is still raised, albeit from one additional frame on the stack trace.
btel
mentioned this pull request
pR0Ps
mentioned this pull request
GFernie
mannequin
mentioned this pull request
This was referenced
Jan 9, 2026This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters