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 leonov
Recipients leonov
Date 2009-07-22.22:27:37
SpamBayes Score 4.330844e-06
Marked as misclassified No
Message-id <>
I've attached a patch to SpooledTemporaryFile (and its test class) to
remove the suprising exceptions.

SpooledTemporaryFile uses a io.StringIO for storage (in self._file)
until it reaches a certain size (or rollover() is called), at which
point it switches to a file object (or _TemporaryFileWrapper on
non-posix platforms).  This implementation detail should be abstracted
away from the user.

The interface mismatch there which caused an AttributeError to be thrown
-- but only if the file size was new, or below a certain size.
Date User Action Args
2009-07-22 22:27:39leonovsetrecipients: + leonov
2009-07-22 22:27:38leonovsetmessageid: <>
2009-07-22 22:27:37leonovlinkissue6541 messages
2009-07-22 22:27:37leonovcreate