From: <no...@so...> - 2002-12-16 21:33:04
|
Bugs item #654863, was opened at 2002-12-16 13:33 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=654863&group_id=12867 Category: Core Group: None Status: Open Resolution: None Priority: 5 Submitted By: Erik Max Francis (xihr) Assigned to: Nobody/Anonymous (nobody) Summary: string.split behaves differently Initial Comment: 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. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=654863&group_id=12867 |