templatetaizing exceptions

alf ask at me
Mon Nov 12 23:09:12 EST 2007


Hi,

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.

What would be the best technique to abstract that out?


-- 
A.



More information about the Python-list mailing list