From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30779 invoked by alias); 13 Nov 2012 19:56:50 -0000 Received: (qmail 30771 invoked by uid 22791); 13 Nov 2012 19:56:49 -0000 X-SWARE-Spam-Status: No, hits=-5.4 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from ausc60pc101.us.dell.com (HELO ausc60pc101.us.dell.com) (143.166.85.206) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 13 Nov 2012 19:56:41 +0000 X-Loopcount0: from 10.175.216.250 From: To: CC: Subject: Re: [PATCH] Python 3 support, part 1 (non-testsuite part) Date: Tue, 13 Nov 2012 19:56:00 -0000 Message-ID: References: <87mwyma6xi.fsf@fleche.redhat.com> <87390d8hdf.fsf@fleche.redhat.com> <87y5i571xi.fsf@fleche.redhat.com> <87mwyl70hu.fsf@fleche.redhat.com> In-Reply-To: <87mwyl70hu.fsf@fleche.redhat.com> Content-Type: text/plain; charset="us-ascii" Content-ID: <6C3C41A2D2C8914097190754BE5D9793@dell.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-11/txt/msg00337.txt.bz2 On Nov 13, 2012, at 2:42 PM, Tom Tromey wrote: >>>>>> "Paul" =3D=3D writes: >=20 > Paul> What I meant is that if I set the PyBuffer_Release as the cleanup > Paul> function, it will be called if the handle_exception machinery gets = an > Paul> exception and returns out from under me. Right? >=20 > Yeah, if you make the cleanup inside the try-catch. > But then you have to explicitly call do_cleanups or discard_cleanups as > well. >=20 > Tom Does that mean that a make cleanup done before the try-catch is not in effe= ct within the try-catch? paul