Message505

Author herron
Recipients
Date 2001-12-07.08:13:11
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Create a string with newlines (and spaces) and splitline
it.  The result drops the first character, and splits on
both newlines and spaces.

Jython on Linux with suns JDK does this:

Jython 2.1b1 on java1.3.1_01 (JIT: null)
>>> a = 'This is a\n multiline string\n'
>>> a.splitlines()
['', 'his', 'is', 'a', '', 'multiline', 'string']
>>>

Whereas CPython on Linux does this:

Python 2.1.1 (#1, Nov 22 2001, 12:33:37)
>>> a = 'This is a\n multiline string\n'
>>> a.splitlines()
['This is a', ' multiline string']
>>>

History
Date User Action Args
2008-02-20 17:16:58adminlinkissue490157 messages
2008-02-20 17:16:58admincreate