Re: Question about decorators (with context?)

2006-09-24 Thread Duncan Booth
"Oliver Andrich" <[EMAIL PROTECTED]> wrote: > I will have to wrap a lot of methods to get all the functionality I > need. And the checking for an exception looks always the same. So I > want to write short methods, which are decorated by my_funky_decorator > which handles the error checking and ex

Question about decorators (with context?)

2006-09-24 Thread Oliver Andrich
Hi, sorry for the vague subject, but I can't come up with a better one so far. I am currently writing a wrapper around ImageMagicks MagickWand library using the ctypes module. During this development i have to handle exceptions in an slightly different way, then python normally handles them. I a