Message804
string.split behaves subtly differently than in
CPython:
max@oxygen:~% python2.1 # 2.1.1 is the closest I have
to Jython's 2.1
Python 2.1.1 (#6, Sep 2 2001, 10:26:49)
[GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)]
on linux2
Type "copyright", "credits" or "license" for more
information.
>>> 'a '.split(None, 1)
['a']
max@oxygen:~% jython
Jython 2.1 on java1.3.0 (JIT: null)
Type "copyright", "credits" or "license" for more
information.
>>> 'a '.split(None, 1)
['a', '']
Note that the string that's being split is 'a ', not
'a'.
I'm encountering this problem with Jython 2.1 on my
Slackware 8.0 Linux system (kernel 2.4.x), with
Blackdown's 1.3.0 JRE.
|
|
| Date |
User |
Action |
Args |
| 2008-02-20 17:17:13 | admin | link | issue654863 messages |
| 2008-02-20 17:17:13 | admin | create | |
|