From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8388 invoked by alias); 13 Nov 2012 19:26:03 -0000 Received: (qmail 8372 invoked by uid 22791); 13 Nov 2012 19:26:02 -0000 X-SWARE-Spam-Status: No, hits=-5.3 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 ausxipps301.us.dell.com (HELO ausxipps301.us.dell.com) (143.166.148.223) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 13 Nov 2012 19:25:58 +0000 X-Loopcount0: from 10.170.28.41 From: To: CC: Subject: Re: [PATCH] Python 3 support, part 1 (non-testsuite part) Date: Tue, 13 Nov 2012 19:26:00 -0000 Message-ID: References: <87mwyma6xi.fsf@fleche.redhat.com> <87390d8hdf.fsf@fleche.redhat.com> <87y5i571xi.fsf@fleche.redhat.com> In-Reply-To: <87y5i571xi.fsf@fleche.redhat.com> Content-Type: text/plain; charset="us-ascii" Content-ID: <83A991122837F142B72AD231AA76E0D6@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/msg00333.txt.bz2 On Nov 13, 2012, at 2:11 PM, Tom Tromey wrote: >>>>>> "Paul" =3D=3D writes: >=20 > Paul> Oops. I suppose I can do this via the "cleanup" mechanism, right? >=20 > You'd have to insert a do_cleanups call in there somehow, but at that > point is just as easy to just call the python function directly instead. >=20 > Tom What I meant is that if I set the PyBuffer_Release as the cleanup function,= it will be called if the handle_exception machinery gets an exception and = returns out from under me. Right? paul