The Split String Function - How to preserve whitespace?

daftspaniel at gmail.com daftspaniel at gmail.com
Sat Jul 8 16:07:38 EDT 2006


Just wrote:
>    >>> "a\nb\nc\n".splitlines(True)
>    ['a\n', 'b\n', 'c\n']

Genius - Thanks alot  for the quick response !! :-)

Thanks,
Davy Mitchell

The Good Ol' Blog 
http://www.latedecember.com/sites/personal/davy/




More information about the Python-list mailing list