On 19Nov2022 18:26, Thomas Passin <li...@tompassin.net> wrote:
The alternative is to just replace every calling function which uses my_ugly_debug() to directly call a logging.whatever() call.

Maybe a place for a decorator...

Indeed, though I don't think the OP is up to decorators yet.

But really, is there any problem which cannot be solved with a decorator? I've even got a @decorator decorator for my decorators.

Cheers,
Cameron Simpson <c...@cskk.id.au>
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to