# Deprecated API

## Contents

- Deprecated Interfaces
- Deprecated Classes
- Deprecated Fields
- Deprecated Methods

- Deprecated Interfaces
  Interface and Description
  org.python.core.InitModule This class is deprecated. See ClassDictInit for a replacement.

- Deprecated Classes
  Class and Description
  org.python.core.PyBuffer.Pointer

- Deprecated Fields
  Field and Description
  org.python.core.PyInteger.maxInt Use MAX_INT instead.
  org.python.core.PyLong.maxLong Use MAX_INT instead.
  org.python.core.PyLong.maxULong Use MAX_ULONG instead.
  org.python.core.PyInteger.minInt Use MIN_INT instead.
  org.python.core.PyLong.minLong Use MIN_INT instead.

- Deprecated Methods
  Method and Description
  org.python.core.PyFunction.delFuncClosure()
  org.python.core.PyFunction.delFuncDefaults()
  org.python.core.PyFunction.delFuncDict()
  org.python.core.PyFunction.delFuncDoc()
  org.python.core.PyFunction.delFuncGlobals()
  org.python.core.PyFunction.delFuncName()
  org.python.core.PyMethod.getFunc()
  org.python.core.PyFunction.getFuncClosure()
  org.python.core.PyFunction.getFuncCode()
  org.python.core.PyFunction.getFuncDefaults()
  org.python.core.PyFunction.getFuncDict()
  org.python.core.PyFunction.getFuncDoc()
  org.python.core.PyFunction.getFuncGlobals()
  org.python.core.PyFunction.getFuncName()
  org.python.core.PyMethod.getSelf()
  org.python.core.imp.importAll(String, PyFrame)
  org.python.core.imp.importFrom(String, String[], PyFrame) use importFrom with level param.
  org.python.core.imp.importFromAs(String, String[], PyFrame) use importFromAs with level param.
  org.python.core.imp.importOne(String, PyFrame)
  org.python.core.imp.importOneAs(String, PyFrame)
  org.python.core.Py.matchException(PyException, PyObject) As of Jython 2.5, use `PyException.match(org.python.core.PyObject)` instead.
  org.python.core.PyFunction.setFuncClosure(PyObject)
  org.python.core.PyFunction.setFuncCode(PyCode)
  org.python.core.PyFunction.setFuncDefaults(PyObject)
  org.python.core.PyFunction.setFuncDict(PyObject)
  org.python.core.PyFunction.setFuncDoc(PyObject)
  org.python.core.PyFunction.setFuncGlobals(PyObject)
  org.python.core.PyFunction.setFuncName(String)
  org.python.core.PySystemState.shadow()
  org.python.modules.errno.strerror(PyObject) Use jnr.constants.platform.Errno.valueOf(code).toString() (or os.strerror from Python) instead.
  org.python.modules._codecs.unicode_internal_decode(String)
  org.python.modules._codecs.unicode_internal_decode(String, String)
  org.python.modules._codecs.unicode_internal_encode(String)
  org.python.modules._codecs.unicode_internal_encode(String, String)

Jython homepage