[Python-3000] Lines breaking (original) (raw)
Ka-Ping Yee python at zesty.ca
Tue May 29 10:36:18 CEST 2007
- Previous message: [Python-3000] Lines breaking
- Next message: [Python-3000] Lines breaking
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-3000] Lines breaking
- Next message: [Python-3000] Lines breaking
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]