You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SpooledTemporaryFile.__iter__ is not transparent to rollover #87034
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=Nonecreated_at=<Date2021-01-08.14:46:35.069>labels= ['type-bug', 'library', '3.10']
title='SpooledTemporaryFile.__iter__ is not transparent to rollover'updated_at=<Date2021-01-08.14:46:35.069>user='https://bugs.python.org/jinohkangkr'
Activity
jinohkangkr commentedon Jan 8, 2021
In tempfile, SpooledTemporaryFile.__iter__ is defined as follows:
A rollover would switch the underlying _file object from a BytesIO to a TemporaryFile, thereby leaving the original iterator stale.
This may be fixed by:
Or perhaps: