R. David Murray added the comment:

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.

----------
nosy: +r.david.murray

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18323>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to