|
This has the potential to break a lot of things, but it is the right thing to do. I hope we are on time to introduce it on 2.5.
I've fixed all the regressions found by running the test suite, fixing the APIs that really need to return str objects. That was done explicitly declaring the return value as PyString on the Java site. On the Python side, I had to introduce StringUtil.asPyString as a helper to force the String -> PyString conversion (Another option is to do java_string.decode('iso8859-1'), but seems rather expensive)
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+125 lines, -110 lines) |
Patch |
 |
|
jython/Lib/javapath.py
|
View
|
1
|
9 chunks |
+13 lines, -11 lines |
4 comments
|
Download
|
 |
|
jython/Lib/os.py
|
View
|
1
|
4 chunks |
+6 lines, -3 lines |
2 comments
|
Download
|
 |
|
jython/Lib/test/test_exceptions.py
|
View
|
|
1 chunk |
+1 line, -1 line |
1 comment
|
Download
|
 |
|
jython/Lib/zlib.py
|
View
|
1
|
3 chunks |
+11 lines, -7 lines |
0 comments
|
Download
|
 |
|
jython/src/com/ziclix/python/sql/DataHandler.java
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
|
jython/src/com/ziclix/python/sql/JDBC20DataHandler.java
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
|
jython/src/com/ziclix/python/sql/Jython22DataHandler.java
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
|
jython/src/com/ziclix/python/sql/handler/MySQLDataHandler.java
|
View
|
1
|
1 chunk |
+7 lines, -5 lines |
2 comments
|
Download
|
 |
|
jython/src/com/ziclix/python/sql/handler/PostgresqlDataHandler.java
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
|
jython/src/org/python/core/PyFile.java
|
View
|
1
|
2 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
 |
|
jython/src/org/python/core/PyFunction.java
|
View
|
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
|
jython/src/org/python/core/PyStringMap.java
|
View
|
1
|
1 chunk |
+1 line, -1 line |
2 comments
|
Download
|
 |
|
jython/src/org/python/core/PySystemState.java
|
View
|
1
|
4 chunks |
+5 lines, -5 lines |
1 comment
|
Download
|
 |
|
jython/src/org/python/core/PyTraceback.java
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
|
jython/src/org/python/core/__builtin__.java
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
|
jython/src/org/python/core/adapter/ClassicPyObjectAdapter.java
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
1 comment
|
Download
|
 |
|
jython/src/org/python/core/util/StringUtil.java
|
View
|
1
|
2 chunks |
+5 lines, -0 lines |
2 comments
|
Download
|
 |
|
jython/src/org/python/modules/binascii.java
|
View
|
1
|
18 chunks |
+21 lines, -22 lines |
0 comments
|
Download
|
 |
|
jython/src/org/python/modules/cPickle.java
|
View
|
1
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
|
jython/src/org/python/modules/cStringIO.java
|
View
|
1
|
11 chunks |
+18 lines, -19 lines |
0 comments
|
Download
|
 |
|
jython/src/org/python/modules/struct.java
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
|
jython/src/org/python/modules/time/Time.java
|
View
|
|
5 chunks |
+8 lines, -8 lines |
2 comments
|
Download
|
Total messages: 4
|