[issue26730] SpooledTemporaryFile doesn't correctly preserve data for text (non-binary) SpooledTemporaryFile objects when Unicode characters are written

2019-11-25 Thread Graham Coster
Graham Coster added the comment: This may be a silly question, however, does SpooledTemporaryFile need to exist at all? >From some testing on macOS, SpooledTemporaryFile appeared to never have a >performance advantage over OS file caching, but with max_size greater than >4GB,

[issue38625] SpooledTemporaryFile does not seek correctly after being rolled over

2019-11-25 Thread Graham Coster
Graham Coster added the comment: This may be a silly question, however, does SpooledTemporaryFile need to exist at all? >From some testing on macOS, SpooledTemporaryFile appeared to never have a >performance advantage over OS file caching, but with max_size greater than >4GB,

[issue38625] SpooledTemporaryFile does not seek correctly after being rolled over

2019-10-28 Thread Graham Coster
New submission from Graham Coster : Hi there, As demonstrated in the attached script, I found that a StopIteration exception occurs once a SpooledTemporaryFile has been rolled over from memory to disk, even though seek(0) had move the file position to the top of the file. I had previously

[issue38625] SpooledTemporaryFile does not seek correctly after being rolled over

2019-10-28 Thread Graham Coster
Change by Graham Coster : -- components: Library (Lib) files: spooled-temp-file-does-not-seek-correctly-after-being-rolled.py nosy: Gary Fernie, James Hennessy, graham.coster, inada.naoki, martin.panter, nubirstein, r.david.murray, serhiy.storchaka, terry.reedy priority: normal