[New-bugs-announce] [issue5539] open documentation unclear

David W. Lambert report at bugs.python.org
Mon Mar 23 01:21:46 CET 2009

New submission from David W. Lambert <lambertdw at corning.com>:

See thread

En Sun, 22 Mar 2009 19:12:13 -0300, Benjamin Peterson   
<benja... at python.org> escribió: 
> Gabriel Genellina <gagsl-py2 <at> yahoo.com.ar> writes: 
>> The undocumented behavior is relying on the open() builtin to return 
>> 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   
And if you open the  file in text mode, the return value isn't a   
Gabriel Genellina 

The return value of open() is a "stream", according to 

messages: 83990
nosy: LambertDW
severity: normal
status: open
title: open documentation unclear

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list