Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Counting in binary is just like counting in decimal -- if you are all thumbs. -- Glaser and Way


devel / comp.lang.python / Re: file.read Method Documentation (Python 2.7.10)

SubjectAuthor
o Re: file.read Method Documentation (Python 2.7.10)Barry Scott

1
Re: file.read Method Documentation (Python 2.7.10)

<mailman.1448.1673283400.20444.python-list@python.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=25466&group=comp.lang.python#25466

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: barry@barrys-emacs.org (Barry Scott)
Newsgroups: comp.lang.python
Subject: Re: file.read Method Documentation (Python 2.7.10)
Date: Mon, 9 Jan 2023 16:56:36 +0000
Lines: 18
Message-ID: <mailman.1448.1673283400.20444.python-list@python.org>
References: <CAP=-cKVyCvpCrASNj=6TLKBBJqfpqPKLR-1EijtYrQ8KuTyomQ@mail.gmail.com>
<05bd9cc9-09e0-51c9-f964-f6b807d19243@barrys-emacs.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de NlYWnj8m0yRxmx9/DT0M/wpK2xEI2Bt2BoESJRfHTO4A==
Return-Path: <barry@barrys-emacs.org>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.002
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:skip:D 10': 0.04;
'byte': 0.09; 'from:addr:barry': 0.09; 'received:217.70': 0.09;
'received:gandi.net': 0.09; 'received:mail.gandi.net': 0.09;
'subject:Python': 0.12; '3.x': 0.16; 'barry': 0.16; 'corrected':
0.16; 'from:addr:barrys-emacs.org': 0.16; 'from:name:barry scott':
0.16; 'message-id:@barrys-emacs.org': 0.16; 'supported.': 0.16;
'wrote:': 0.16; 'python': 0.16; 'instead': 0.17; 'to:addr:python-
list': 0.20; 'error': 0.29; 'header:User-Agent:1': 0.30; 'think':
0.32; 'to:name:python': 0.32; 'header:In-Reply-To:1': 0.34;
'yes,': 0.35; 'file': 0.38; 'read': 0.38; 'method': 0.61; 'dear':
0.62; 'let': 0.66; 'received:217': 0.67; 'longer': 0.71
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.6.0
Content-Language: en-US
In-Reply-To: <CAP=-cKVyCvpCrASNj=6TLKBBJqfpqPKLR-1EijtYrQ8KuTyomQ@mail.gmail.com>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <05bd9cc9-09e0-51c9-f964-f6b807d19243@barrys-emacs.org>
X-Mailman-Original-References: <CAP=-cKVyCvpCrASNj=6TLKBBJqfpqPKLR-1EijtYrQ8KuTyomQ@mail.gmail.com>
 by: Barry Scott - Mon, 9 Jan 2023 16:56 UTC

On 09/01/2023 14:34, Stephen Tucker wrote:
> Dear Python-list,
>
> Yes, I know that Python 2.x is no longer supported.
>
> I have found that the documentation for this method is misleading when the
> file being read is UTF-8-encoded:
>
> Instead of reading *size* bytes, the method reads *size *UTF-8 byte
> *sequences*.
>
> Has this error been corrected in the Python 3.x documentation?

Please read the python 3 docs and let us know if you think its correct now.

Barry


devel / comp.lang.python / Re: file.read Method Documentation (Python 2.7.10)

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor