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: Imprecise description for the file.read() method
Type: behavior Stage: resolved
Components: Documentation Versions: Python 3.1
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Update 'file object' doc
View: 7508
Assigned To: georg.brandl Nosy List: flox, georg.brandl, jlp, pitrou
Priority: normal Keywords:

Created on 2009-12-21 20:11 by jlp, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
unnamed jlp, 2009-12-21 23:09
Messages (5)
msg96767 - (view) Author: Jacques Lemire (jlp) Date: 2009-12-21 20:11
see this web page:
http://docs.python.org/3.1/library/stdtypes.html?
highlight=read#file.read

The description should say:
for Python 3.1 the method reads characters, for instance utf-8 
characters.

if the mode is 'rb', then it reads bytes (i.e. byte == 8 bits).

Context: Linux Ubuntu 9.10, 64 bit, compiled locally.
msg96772 - (view) Author: Florent Xicluna (flox) * (Python committer) Date: 2009-12-21 21:55
This section is obsolete and is removed from the documentation in r76893
an r76894. See issue #7508.
msg96781 - (view) Author: Jacques Lemire (jlp) Date: 2009-12-21 23:10
Merci Florent
Mais alors où se cache la documentation 3.1 "officiel" sur la classe file.

Jacques

2009/12/21 Florent Xicluna <report@bugs.python.org>

>
> Florent Xicluna <laxyf@yahoo.fr> added the comment:
>
> This section is obsolete and is removed from the documentation in r76893
> an r76894. See issue #7508.
>
> ----------
> nosy: +flox
> resolution:  -> duplicate
> stage:  -> committed/rejected
> status: open -> closed
> superseder:  -> Update 'file object' doc
> title: Imprecise description for the fire.read() method -> Imprecise
> description for the file.read() method
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue7557>
> _______________________________________
>
msg96782 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2009-12-21 23:13
It's in the "io" module:
http://docs.python.org/dev/py3k/library/io.html
msg96783 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2009-12-21 23:16
> Merci Florent
> Mais alors où se cache la documentation 3.1 "officiel" sur la classe file.

Even though we seem to have a disturbing accumulation of French
developers here, please keep to English on the tracker :)
History
Date User Action Args
2022-04-11 14:56:55adminsetgithub: 51806
2009-12-21 23:16:46georg.brandlsetmessages: + msg96783
2009-12-21 23:13:16pitrousetnosy: + pitrou
messages: + msg96782
2009-12-21 23:10:00jlpsetfiles: + unnamed

messages: + msg96781
2009-12-21 21:55:34floxsetstatus: open -> closed

superseder: Update 'file object' doc
title: Imprecise description for the fire.read() method -> Imprecise description for the file.read() method
nosy: + flox

messages: + msg96772
resolution: duplicate
stage: resolved
2009-12-21 20:11:41jlpcreate