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.

classification
Title: open documentation unclear
Type: Stage:
Components: Documentation Versions: Python 3.0
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: LambertDW, benjamin.peterson, georg.brandl
Priority: normal Keywords:

Created on 2009-03-23 00:21 by LambertDW, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg83990 - (view) Author: David W. Lambert (LambertDW) Date: 2009-03-23 00:21
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
msg83995 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2009-03-23 02:39
Fixed in r70534.
History
Date User Action Args
2022-04-11 14:56:46adminsetgithub: 49789
2009-03-23 02:39:06benjamin.petersonsetstatus: open -> closed

nosy: + benjamin.peterson
messages: + msg83995

resolution: fixed
2009-03-23 00:26:01LambertDWsetassignee: georg.brandl

nosy: + georg.brandl
components: + Documentation
versions: + Python 3.0
2009-03-23 00:21:44LambertDWcreate