tail

Chris Angelico rosuav at gmail.com
Mon May 2 14:42:24 EDT 2022


On Tue, 3 May 2022 at 04:38, Marco Sulla <Marco.Sulla.Python at gmail.com> wrote:
>
> On Mon, 2 May 2022 at 18:31, Stefan Ram <ram at zedat.fu-berlin.de> wrote:
> >
> > |The Unicode standard defines a number of characters that
> > |conforming applications should recognize as line terminators:[7]
> > |
> > |LF:    Line Feed, U+000A
> > |VT:    Vertical Tab, U+000B
> > |FF:    Form Feed, U+000C
> > |CR:    Carriage Return, U+000D
> > |CR+LF: CR (U+000D) followed by LF (U+000A)
> > |NEL:   Next Line, U+0085
> > |LS:    Line Separator, U+2028
> > |PS:    Paragraph Separator, U+2029
> > |
> > Wikipedia "Newline".
>
> Should I suppose that other encodings may have more line ending chars?

No, because those are Unicode characters. How they're encoded may
affect the bytes you see, but those are code point values after
decoding.

ChrisA


More information about the Python-list mailing list