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 <1248301658.9.0.0550967830695.issue6541@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-07-22 22:27:39leonovsetrecipients: + leonov
2009-07-22 22:27:38leonovsetmessageid: <1248301658.9.0.0550967830695.issue6541@psf.upfronthosting.co.za>
2009-07-22 22:27:37leonovlinkissue6541 messages
2009-07-22 22:27:37leonovcreate