You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I really don't know how suppress or this code work and if I get the time I'll look into it. But, I want a suppress that doesn't stop execution of a block of code when an error it is supposed to suppress occurs. So instead of this which is an excerpt from a decorator I was making:
with suppress(AttributeError): f_wrapper.__defaults__ = f.__defaults__
with suppress(AttributeError): f_wrapper.__kwdefaults__ = f.__kwdefaults__
with suppress(AttributeError): f_wrapper.__annotations__ = f.__annotations__
with suppress(AttributeError): f_wrapper.__module__ = f.__module__
with suppress(AttributeError): f_wrapper.__dict__.update(f.__dict__)
I really don't know how suppress or this code work and if I get the time I'll look into it. But, I want a suppress that doesn't stop execution of a block of code when an error it is supposed to suppress occurs. So instead of this which is an excerpt from a decorator I was making:
I would like this:
Just an idea, and thanks for looking.
Also, maybe FUCET for a module rename if you want: fully unregulated context error trampler
The text was updated successfully, but these errors were encountered: