Right. The decorator approach doesn't seem to be a general way to go about it.
On Thursday, October 6, 2022 at 6:29:00 AM UTC-4 Edward K. Ream wrote: > On Wed, Oct 5, 2022 at 11:58 PM Thomas Passin <[email protected]> wrote: > >> I wondered recently how practical it would be to do exception handling >> with decorators instead of try...except blocks. > > > An interesting idea. However, the granularity of the try/except blocks is > the entire decorated function, which is often not what is desired. > > Edward > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/9e93971a-424f-4fd0-ad7a-e4f8fe31c337n%40googlegroups.com.
