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 r.david.murray
Recipients Laurent.Gautier, nadeem.vawda, r.david.murray
Date 2013-06-28.15:30:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1372433402.13.0.63831125032.issue18323@psf.upfronthosting.co.za>
In-reply-to
Content
Based on a quick glance at the code, the problem isn't that you are passing fileobj, it is that fileobj has been opened for writing, not reading, and you are attempting to read from it.  extrastart (and other attibutes) are only set if mode starts with 'r'.

There is certainly a bug here, but it might just be that a clearer error should be generated if you try to read a fileobj open for writing.
History
Date User Action Args
2013-06-28 15:30:02r.david.murraysetrecipients: + r.david.murray, nadeem.vawda, Laurent.Gautier
2013-06-28 15:30:02r.david.murraysetmessageid: <1372433402.13.0.63831125032.issue18323@psf.upfronthosting.co.za>
2013-06-28 15:30:02r.david.murraylinkissue18323 messages
2013-06-28 15:30:01r.david.murraycreate