Karthikeyan Singaravelan <tir.kar...@gmail.com> added the comment:
Do we need to explicitly document the return value change of _file which is documented with a separate versionchanged directive for 3.7 and 3.8? Code like below could fail in them since TextIOWrapper doesn't have getvalue attribute as the minor version upgrade is done. import tempfile with tempfile.SpooledTemporaryFile(mode='wt') as f: f.write('abc') assert f._file.getvalue() == 'abc' ---------- nosy: +xtreak _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue26730> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com