Top Description Methods
org.python.core.finalization

public Interface FinalizableBuiltin

Known Direct Implementers
org.python.modules.bz2.PyBZ2File, org.python.modules._io.PyIOBase, org.python.core.PyFile, org.python.core.PyGenerator

See documentation of FinalizablePyObject.

Method Summary

Modifier and TypeMethod and Description
public void
__del_builtin__()

__del_builtin__() is the built-in's own finalizer, while FinalizablePyObjectDerived#__del_derived__() refers to an instance's in-dict __del__.

Method Detail

__del_builtin__back to summary
public void __del_builtin__()

__del_builtin__() is the built-in's own finalizer, while FinalizablePyObjectDerived#__del_derived__() refers to an instance's in-dict __del__. A FinalizeTrigger calls FinalizablePyObjectDerived#__del_derived__() first and - if existent - __del_builtin__() after that. A plain FinalizablePyObject#__del__() would behave as overridden by FinalizablePyObjectDerived#__del_derived__(), i.e. won't be called if the type implements FinalizablePyObjectDerived, while __del_builtin__() is called in any case.