Logging

Chris Angelico rosuav at gmail.com
Sat Nov 19 20:36:29 EST 2022


On Sun, 20 Nov 2022 at 12:27, Cameron Simpson <cs at cskk.id.au> wrote:
>
> On 19Nov2022 18:26, Thomas Passin <list1 at 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.
>

Do you have a @toomanydecorators decorator to reduce the number of
decorators you need to decorate your decorators?

ChrisA


More information about the Python-list mailing list