On Wed, Jan 05, 2011 at 08:55:44PM +0200, Michael Goldish wrote: > On 01/05/2011 06:21 PM, Eduardo Habkost wrote: > > By the way, I think we could make _new_context() and _pop_context() part > > of the public interface (i.e. remove the "_" from their names). I see > > @context_aware as just a helper for a stack interface that could be used > > directly if needed. > > To actually use the context you also have to insert it into an > exception, i.e. > > _new_context('foo') > try: > try: > ... > except Exception, e: > e._context = get_context() > finally: > _pop_context() True. Just forget about my suggestion. :) -- Eduardo -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html