Package org.python.core.finalization
Interface FinalizableBuiltin
- All Known Implementing Classes:
PyBZ2File
,PyBZ2FileDerived
,PyFile
,PyFileDerived
,PyFileIO
,PyFileIODerived
,PyGenerator
,PyIOBase
,PyIOBaseDerived
,PyRawIOBase
,PyRawIOBaseDerived
public interface FinalizableBuiltin
See documentation of
FinalizablePyObject
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
__del_builtin__()
is the built-in's own finalizer, whileFinalizablePyObjectDerived.__del_derived__()
refers to an instance's in-dict__del__
.
-
Method Details
-
__del_builtin__
void __del_builtin__()__del_builtin__()
is the built-in's own finalizer, whileFinalizablePyObjectDerived.__del_derived__()
refers to an instance's in-dict__del__
. A FinalizeTrigger callsFinalizablePyObjectDerived.__del_derived__()
first and - if existent -__del_builtin__()
after that. A plainFinalizablePyObject.__del__()
would behave as overridden byFinalizablePyObjectDerived.__del_derived__()
, i.e. won't be called if the type implementsFinalizablePyObjectDerived
, while__del_builtin__()
is called in any case.
-