Re: [PATCH 7/7] python: wrap and use notmuch_database_destroy as destructor
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Fri, 20 Apr 2012 13:10:04 +0000 (15:10 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:46:35 +0000 (09:46 -0800)
01/c34ffb6d94fa9eac8d0aab9293743439973363 [new file with mode: 0644]

diff --git a/01/c34ffb6d94fa9eac8d0aab9293743439973363 b/01/c34ffb6d94fa9eac8d0aab9293743439973363
new file mode 100644 (file)
index 0000000..662708c
--- /dev/null
@@ -0,0 +1,98 @@
+Return-Path: <Sebastian@SSpaeth.de>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 78BDA431FB6\r
+       for <notmuch@notmuchmail.org>; Sat, 21 Apr 2012 04:22:50 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.09\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.09 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       RCVD_IN_DNSWL_NONE=-0.0001, T_MIME_NO_TEXT=0.01] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id KQNGxe6QxjJG for <notmuch@notmuchmail.org>;\r
+       Sat, 21 Apr 2012 04:22:46 -0700 (PDT)\r
+Received: from homiemail-a76.g.dreamhost.com (caiajhbdcahe.dreamhost.com\r
+       [208.97.132.74])\r
+       by olra.theworths.org (Postfix) with ESMTP id 6EF20431FAE\r
+       for <notmuch@notmuchmail.org>; Sat, 21 Apr 2012 04:22:46 -0700 (PDT)\r
+Received: from homiemail-a76.g.dreamhost.com (localhost [127.0.0.1])\r
+       by homiemail-a76.g.dreamhost.com (Postfix) with ESMTP id ABA73458079;\r
+       Sat, 21 Apr 2012 04:22:39 -0700 (PDT)\r
+DomainKey-Signature: a=rsa-sha1; c=nofws; d=SSpaeth.de; h=from:to:cc:subject\r
+       :in-reply-to:references:date:message-id:mime-version:\r
+       content-type; q=dns; s=sspaeth.de; b=nrMjZ85usbTILNSuLarP0osT+3y\r
+       /hiojJUu8OW2qM6COI8k7wwwWELP07sfV0N9nuikk1pnxUmY+QJwzkrMK7DQl7FR\r
+       +rTjDZB8tMLqMWFWxwrmxR0ODMxbrfYWxcuNSzPxiUsUtZJqcKHkE78c5UqLPUqV\r
+       jP6gD6HflBg4AVN8=\r
+DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=SSpaeth.de; h=from:to:cc\r
+       :subject:in-reply-to:references:date:message-id:mime-version:\r
+       content-type; s=sspaeth.de; bh=yXvFYWXTw1mmryQPalG3OULsR/0=; b=J\r
+       jgGLlepwKkRC1LwPfRy5yparaQPSPuiXxfcXfJIbqL78/EoZpp/Wrg1JT+kpBQfc\r
+       kEySoBwoPwp3ApDUjkTw2GbdIKiPCPyut56Pd/wc+Ep4+0bjYFQZJVoUqPeof99/\r
+       +9anVw9ePTKrV4CbjjfsUXGWL41QDaEwE/SXRNpGXA=\r
+Received: from spaetzbook (unknown [176.46.208.243])\r
+       (Authenticated sender: fax@sspaeth.de)\r
+       by homiemail-a76.g.dreamhost.com (Postfix) with ESMTPA id 5613D458071; \r
+       Sat, 21 Apr 2012 04:22:39 -0700 (PDT)\r
+Received: by spaetzbook (Postfix, from userid 1000)\r
+       id B57AE1600B9; Fri, 20 Apr 2012 15:10:11 +0200 (CEST)\r
+From: Sebastian Spaeth <Sebastian@SSpaeth.de>\r
+To: Austin Clements <amdragon@MIT.EDU>,\r
+       Justus Winter <4winter@informatik.uni-hamburg.de>\r
+Subject: Re: [PATCH 7/7] python: wrap and use notmuch_database_destroy as\r
+       destructor\r
+In-Reply-To: <20120412170249.GG13549@mit.edu>\r
+References:\r
+ <1332291311-28954-1-git-send-email-4winter@informatik.uni-hamburg.de>\r
+       <1332291311-28954-8-git-send-email-4winter@informatik.uni-hamburg.de>\r
+       <20120412170249.GG13549@mit.edu>\r
+User-Agent: Notmuch/0.12+113~gde05574 (http://notmuchmail.org) Emacs/23.3.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Fri, 20 Apr 2012 15:10:04 +0200\r
+Message-ID: <87ty0ek0r7.fsf@sspaeth.de>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha1; protocol="application/pgp-signature"\r
+Cc: notmuch@notmuchmail.org\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 21 Apr 2012 11:22:50 -0000\r
+\r
+--=-=-=\r
+\r
+Austin Clements <amdragon@MIT.EDU> writes:\r
+> (I think it also doesn't make sense to expose notmuch_database_destroy\r
+> as a general, public method since it will free all of the other C\r
+> objects out from under the bindings, resulting in exactly the double\r
+> free-type crashes that you're trying to avoid.  It appears that none\r
+> of the other Python classes have a destroy method.)\r
+\r
+Agreed, that sounds right to me.\r
+\r
+Sebastian\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.11 (GNU/Linux)\r
+\r
+iEYEARECAAYFAk+RYCwACgkQVYX1jMgnoGKK5gCfVFw75E2kRgeK8Vrwuyhl99Bd\r
+fRgAnj7ygCFj2wJzS/OoInLkNqEKlDtI\r
+=m5GA\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r