[Twisted-Python] Having some kind of "finally" clause

Vincent Bernat bernat at luffy.cx
Mon Sep 22 12:48:37 EDT 2008


OoO En ce début d'après-midi ensoleillé du lundi 22 septembre 2008, vers
15:23, Jean-Paul Calderone <exarkun at divmod.com> disait :

> There are a lot of ways.  You could make x an attribute of a shared object,
> or you could close over it in the first callback to create the "finally"
> handler, or you could pass it along as an argument to the `addBoth´ call
> (again, in the first callback).

Thanks for the tip. I am now using the last approach.
-- 
 /* Nobody will ever see this message :-) */
panic("Cannot initialize video hardware\n");
	2.0.38 /usr/src/linux/arch/m68k/atari/atafb.c




More information about the Twisted-Python mailing list