Why doesn't tempfile.SpooledTemporaryFile implement readable, writable, seekable?
Why doesn't tempfile.SpooledTemporaryFile implement readable, writable, seekable? Question: In Python 3.6.1, I’ve tried wrapping a tempfile.SpooledTemporaryFile in an io.TextIOWrapper: with tempfile.SpooledTemporaryFile() as tfh: do_some_download(tfh) tfh.seek(0) wrapper = io.TextIOWrapper(tfh, encoding=’utf-8′) yield from do_some_text_formatting(wrapper) The line wrapper = io.TextIOWrapper(tfh, encoding=’utf-8′) gives me an error: AttributeError: ‘SpooledTemporaryFile’ object has no attribute ‘readable’ If I create a simple class …