.. _jgdv.debugging.destruction: ========================== jgdv.debugging.destruction ========================== .. py:module:: jgdv.debugging.destruction .. autoapi-nested-parse:: See EOF for license/metadata/notes as applicable Functions --------- .. autoapisummary:: jgdv.debugging.destruction.LogDel jgdv.debugging.destruction._decorate_del jgdv.debugging.destruction._log_del Classes ------- .. autoapisummary:: jgdv.debugging.destruction.LogDestruction Module Contents =============== .. py:function:: LogDel(cls) -> A Class Decorator, attaches a debugging statement to the object destructor To activate, add classvar of {jgdv.debugging._interface.DEL_LOG_K} = True to the class. .. py:function:: _decorate_del(fn) -> wraps existing del method .. py:function:: _log_del(self) -> standalone del logging .. _jgdv.debugging.destruction.LogDestruction: .. py:class:: LogDestruction Bases: :py:obj:`jgdv.decorators._interface.ClsDecorator_p` A Decorator to log when instances of a class are deleted .. py:method:: _debug_del() -> standalone del logging .. py:method:: _debug_del_dec(fn) -> wraps existing del method