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 dutchmo
Recipients dutchmo
Date 2018-01-19.18:31:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1516386713.77.0.467229070634.issue32600@psf.upfronthosting.co.za>
In-reply-to
Content
SpooledTemporaryFile returns alternately a buffer or a TemporaryFile().

In either case it should behave like a file-thing.
However it doesn't implement certain properties in IOBase like readable, seekable which seems like should be available.

for example, on Ubuntu Linux with Python 3.6.2, 

reader = csv.reader(TextIOWrapper(csvfile), *args, **kwargs)

gives error AttributeError: 'SpooledTemporaryFile' object has no attribute 'readable'
when csvfile is a werkzeug.datastructures.FileStorage object

see also:
https://stackoverflow.com/questions/47160211/why-doesnt-tempfile-spooledtemporaryfile-implement-readable-writable-seekable
History
Date User Action Args
2018-01-19 18:31:53dutchmosetrecipients: + dutchmo
2018-01-19 18:31:53dutchmosetmessageid: <1516386713.77.0.467229070634.issue32600@psf.upfronthosting.co.za>
2018-01-19 18:31:53dutchmolinkissue32600 messages
2018-01-19 18:31:53dutchmocreate