tail

Dan Stromberg drsalists at gmail.com
Sun May 1 19:17:33 EDT 2022


On Sun, May 1, 2022 at 3:19 PM Cameron Simpson <cs at cskk.id.au> wrote:

> On 01May2022 18:55, Marco Sulla <Marco.Sulla.Python at gmail.com> wrote:
> >Something like this is OK?
>

Scanning backward for a byte == 10 in ASCII or ISO-8859 seems fine.

But what about Unicode?  Are all 10 bytes newlines in Unicode encodings?

If not, and you have a huge file to reverse, it might be better to use a
temporary file.


More information about the Python-list mailing list