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)
> ...
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:
...
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