Issue490157
Created on 2001-12-07.08:13:11 by herron, last changed 2001-12-07.14:16:04 by bckfnn.
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2001-12-07 08:13:11 | herron | create | |
Created on 2001-12-07.08:13:11 by herron, last changed 2001-12-07.14:16:04 by bckfnn.
| Messages | |||
|---|---|---|---|
| msg505 (view) | Author: Gary Herron (herron) | Date: 2001-12-07.08:13:11 | |
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'] >>> |
|||
| msg506 (view) | Author: Finn Bock (bckfnn) | Date: 2001-12-07.14:13:35 | |
Logged In: YES user_id=4201 Added as test347.py |
|||
| msg507 (view) | Author: Finn Bock (bckfnn) | Date: 2001-12-07.14:16:04 | |
Logged In: YES user_id=4201 Fixed in PyString.java: 2.53; |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2001-12-07 08:13:11 | herron | create | |
Supported by Python Software Foundation,
Powered by Roundup