This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amcinnes
Recipients amcinnes
Date 2020-04-15.01:41:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The documentation says SpooledTemporaryFile "operates exactly as TemporaryFile() does".

seek() would be expected to return the new absolute position; this is what it does for TemporaryFile, and is the documented behaviour of seek() in IOBase. But for SpooledTemporaryFile it returns None.

Probably trivial to fix by sticking a "return" on

Python 3.8.2 (default, Apr  8 2020, 14:31:25) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tempfile
>>> t = tempfile.TemporaryFile()
>>> print(
>>> u = tempfile.SpooledTemporaryFile()
>>> print(
Date User Action Args
2020-04-15 01:41:51amcinnessetrecipients: + amcinnes
2020-04-15 01:41:51amcinnessetmessageid: <>
2020-04-15 01:41:51amcinneslinkissue40287 messages
2020-04-15 01:41:50amcinnescreate