jgdv.debugging.destruction

See EOF for license/metadata/notes as applicable

Functions

LogDel(cls)

A Class Decorator, attaches a debugging statement to the object destructor

_decorate_del(fn)

wraps existing del method

_log_del(self)

standalone del logging

Classes

LogDestruction

A Decorator to log when instances of a class are deleted

Module Contents

jgdv.debugging.destruction.LogDel(cls) <Unknown>[source]

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.

Parameters:

cls (type)

Return type:

type

jgdv.debugging.destruction._decorate_del(fn) <Unknown>[source]

wraps existing del method

Parameters:

fn (jgdv.Func[Ellipsis, None])

Return type:

jgdv.Func[Ellipsis, None]

jgdv.debugging.destruction._log_del(self) <Unknown>[source]

standalone del logging

Parameters:

self (Any)

Return type:

None

class jgdv.debugging.destruction.LogDestruction[source]

Bases: jgdv.decorators._interface.ClsDecorator_p

A Decorator to log when instances of a class are deleted

_debug_del() <Unknown>[source]

standalone del logging

Return type:

None

_debug_del_dec(fn) <Unknown>[source]

wraps existing del method

Parameters:

fn (jgdv.Func)

Return type:

collections.abc.Callable