Re: Add a line_offsets() method to str

June 22, 2022
1:34 a.m.
On Tue, Jun 21, 2022 at 3:49 AM Marco Sulla <Marco.Sulla.Python@gmail.com> wrote:
I don't remember the old discussion, but I think so. Another idea is adding some option to `splitlines()` that uses only universal newlines. (e.g. str.splitlines(keepends=False, *, ascii=False)) Then we can add `str.iterlines` that have the same arguments to `str.splitlines`. -- Inada Naoki <songofacandy@gmail.com>
978
Age (days ago)
978
Last active (days ago)
0 comments
1 participants
participants (1)
-
Inada Naoki