This wiki is in the process of being archived due to lack of usage and the resources necessary to serve it — predominately to bots, crawlers, and LLM companies. Edits are discouraged.
Pages are preserved as they were at the time of archival. For current information, please visit python.org.
If a change to this archive is absolutely needed, requests can be made via the infrastructure@python.org mailing list.

* 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


2026-02-14 16:30