Issue687826
Created on 2003-02-17.09:19:05 by anonymous, last changed 2005-02-28.05:24:48 by bzimmer.
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2003-02-17 09:19:05 | anonymous | create | |
Created on 2003-02-17.09:19:05 by anonymous, last changed 2005-02-28.05:24:48 by bzimmer.
| Messages | |||
|---|---|---|---|
| msg818 (view) | Author: Nobody/Anonymous (nobody) | Date: 2003-02-17.09:19:05 | |
using such statement failed with :
TypeError: split(): 1st arg can't be coerced to
java.lang.CharSequence
from java.util.regex import Pattern;
pattern = Pattern.compile("xxx");
matches = pattern.split("ABCDEFG");
==> error occurs
i am using Jython 2.1 on java1.4.1_01 (JIT: null).
|
|||
| msg819 (view) | Author: Ype (ype) | Date: 2003-06-26.17:38:08 | |
Logged In: YES
user_id=125722
A workaround is to explicitly construct a
java.lang.String:
from java.lang import String
matches = pattern.split(String("ABCDEFG"))
|
|||
| msg820 (view) | Author: Brian Zimmer (bzimmer) | Date: 2005-02-28.05:24:48 | |
Logged In: YES user_id=37674 Added as bug test383. Fixed in CVS. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2003-02-17 09:19:05 | anonymous | create | |
Supported by Python Software Foundation,
Powered by Roundup