str.splitlines

splitlines([keepends])

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.

 

Comment:

does the function handle mixed newline and carriage return sequences gracefully?

Posted by sono (2006-12-12)

A Django site. rendered by a django application. hosted by webfaction.