Skip to content

Add splitlines? #19759

@mpastell

Description

@mpastell

I think it would be useful to have a splitlines method similar to Python

Return a list of the lines in the string, breaking at line boundaries. Line breaks are not included in the resulting list unless keepends is given and true.

https://docs.python.org/3/library/stdtypes.html?highlight=splitlines .

I think it would be convenient, at least for me I very often process strings line by line. And it would be useful in order to avoid bugs related to \ron Windows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions