Description
Spring Java has the DisposableBean interface http://static.springsource.org/spring/docs/2.5.x/api/org/springframework/beans/factory/DisposableBean.html, which allows the class to provide a method to be invoked by container when the class (singletons only, actually) is about to be destroyed, i.e. similar to _del_ in Python, but invoked explicitly by the container. It would be nice to have DisposableObject in Spring Python too.