Differences between revisions 4 and 7 (spanning 3 versions)
Revision 4 as of 2008-11-12 22:48:18
Size: 517
Comment:
Revision 7 as of 2008-11-23 12:57:42
Size: 666
Editor: dsl092-163-165
Comment: Use stars
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
You can no longer do `PyFile`(inputStream) directly from Jython code. This is because a `PyFile` that gets an `InputStream` [INSERT REAL REASON], so that the recommended approach is to replace code like: * You can no longer do `PyFile`(inputStream) directly from Jython code. This is because a `PyFile` that gets an `InputStream` [INSERT REAL REASON], so that the recommended approach is to replace code like:
Line 17: Line 17:

* types.ArrayType has been removed as CPython never had it. Used array.ArrayTypes instead

* The pre and xreadlines modules have been removed

* You can no longer do PyFile(inputStream) directly from Jython code. This is because a PyFile that gets an InputStream [INSERT REAL REASON], so that the recommended approach is to replace code like:

from java.io import FileInputStream
from org.python.core import PyFile
fis = FileInputStream("error.txt")
pyf = PyFile(fis)

with code like:

from java.io import FileInputStream
from org.python.core.util import FileUtil
fis = FileInputStream("error.txt")
pyf = FileUtil.wrap(fis)

* types.ArrayType has been removed as CPython never had it. Used array.ArrayTypes instead

* The pre and xreadlines modules have been removed

Jython25BackwardsIncompatibilities (last edited 2008-11-23 17:56:15 by astound-69-42-4-166)