On Sun, May 1, 2022 at 3:19 PM Cameron Simpson <c...@cskk.id.au> wrote:
> On 01May2022 18:55, Marco Sulla <marco.sulla.pyt...@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. -- https://mail.python.org/mailman/listinfo/python-list