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 LambertDW
Recipients LambertDW
Date 2009-03-23.00:21:43
SpamBayes Score 0.00028818598
Marked as misclassified No
Message-id <1237767706.4.0.494617404743.issue5539@psf.upfronthosting.co.za>
In-reply-to
Content
See thread
http://groups.google.com/group/comp.lang.python/browse_thread/thread/85e
c714aa6898d84#


En Sun, 22 Mar 2009 19:12:13 -0300, Benjamin Peterson   
<benja...@python.org> escribió: 
> Gabriel Genellina <gagsl-py2 <at> yahoo.com.ar> writes: 
>> The undocumented behavior is relying on the open() builtin to return 
a 
>> BufferedReader for a binary file. 
> I don't see the problem. open() will return some BufferedIOBase   
> implmentor, and 
> that's all that TextIOWrapper needs. 


How do you know? AFAIK, the return value of open() is completely   
undocumented: 
http://docs.python.org/3.0/library/functions.html#open 
And if you open the  file in text mode, the return value isn't a   
BufferedIOBase. 
-- 
Gabriel Genellina 

The return value of open() is a "stream", according to 
http://docs.python.org/dev/py3k/library/io.html#module-io
History
Date User Action Args
2009-03-23 00:21:46LambertDWsetrecipients: + LambertDW
2009-03-23 00:21:46LambertDWsetmessageid: <1237767706.4.0.494617404743.issue5539@psf.upfronthosting.co.za>
2009-03-23 00:21:44LambertDWlinkissue5539 messages
2009-03-23 00:21:43LambertDWcreate