Re: templatetaizing exceptions

2007-11-13 Thread alf
david wrote: > On Tue, 13 Nov 2007 06:17:26 -0300, Gabriel Genellina wrote: > >> A function? >> >> try: >> code_block >> except A: >> handle_exception() > > maybe > def handle(f, *args, **kw): > ... try: > ... return f(*args, **kw) > ...

Re: templatetaizing exceptions

2007-11-13 Thread david
On Tue, 13 Nov 2007 06:17:26 -0300, Gabriel Genellina wrote: > > A function? > > try: > code_block > except A: > handle_exception() maybe >>> def handle(f, *args, **kw): ... try: ... return f(*args, **kw) ... except A: ...

Re: templatetaizing exceptions

2007-11-13 Thread Gabriel Genellina
En Tue, 13 Nov 2007 01:09:12 -0300, alf <[EMAIL PROTECTED]> escribió: > I have a few places in the code where I use: > > try: > code_block > except A: > exception_handling > > > the code block is different each time while exception_handling the same. > > Wha