CARVIEW |
Select Language
HTTP/2 200
date: Tue, 26 Aug 2025 01:55:10 GMT
server: Apache/2.4.41 (Ubuntu)
vary: Cookie,User-Agent,Accept-Encoding
content-encoding: gzip
content-type: text/html; charset=utf-8
x-clacks-overhead: GNU Terry Pratchett
strict-transport-security: max-age=315360000; includeSubDomains; preload
Jython25BackwardsIncompatibilities - JythonWiki
* 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. Use array.ArrayTypes instead (which is available in both 2.2 and 2.5)
* The pre and xreadlines modules have been removed
Jython25BackwardsIncompatibilities (last edited 2008-11-23 17:56:15 by astound-69-42-4-166)