[Python-3000] Lines breaking

Ka-Ping Yee python at zesty.ca
Tue May 29 10:36:18 CEST 2007

On Tue, 29 May 2007, [UTF-8] Ivan KrstiÄ^G wrote:
> Guido van Rossum wrote:
> > What would that do?
> It would split on all separators in the tuple, so
>     x.split(("\r", "\n"))
> would do the same thing that x.splitlines() does now.

Hmm... would it?  Or should two split points with nothing between
them produce empty strings, i.e. you would have to do

    x.split(('\r\n', '\r', '\n'))

to get the behaviour of x.splitlines()?

-- ?!ng

More information about the Python-3000 mailing list