Re: [PATCH v3] nmbug: Translate to Python
authorDavid Bremner <bremner@debian.org>
Sun, 24 Aug 2014 20:39:23 +0000 (13:39 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:04:17 +0000 (10:04 -0800)
ea/46d752ab2711b3d08bff881bb9681357a6e5b2 [new file with mode: 0644]

diff --git a/ea/46d752ab2711b3d08bff881bb9681357a6e5b2 b/ea/46d752ab2711b3d08bff881bb9681357a6e5b2
new file mode 100644 (file)
index 0000000..cb4eade
--- /dev/null
@@ -0,0 +1,87 @@
+Return-Path: <david@tethera.net>\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 A40D0431FAF\r
+       for <notmuch@notmuchmail.org>; Sun, 24 Aug 2014 13:39:33 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+       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 Tq1Ofejdz-Yf for <notmuch@notmuchmail.org>;\r
+       Sun, 24 Aug 2014 13:39:28 -0700 (PDT)\r
+Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155])\r
+       (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 38229431FAE\r
+       for <notmuch@notmuchmail.org>; Sun, 24 Aug 2014 13:39:28 -0700 (PDT)\r
+Received: from remotemail by yantan.tethera.net with local (Exim 4.80)\r
+       (envelope-from <david@tethera.net>)\r
+       id 1XLeZT-0006ct-3F; Sun, 24 Aug 2014 17:39:27 -0300\r
+Received: (nullmailer pid 16215 invoked by uid 1000); Sun, 24 Aug 2014\r
+       20:39:23 -0000\r
+From: David Bremner <bremner@debian.org>\r
+To: "W. Trevor King" <wking@tremily.us>\r
+Subject: Re: [PATCH v3] nmbug: Translate to Python\r
+In-Reply-To: <20140806232131.GH31313@odin.tremily.us>\r
+References:\r
+ <84447a0ed48412e1587761d560d18cb5affd4f66.1405897133.git.wking@tremily.us>\r
+       <878un36bd5.fsf@maritornes.cs.unb.ca>\r
+       <20140806232131.GH31313@odin.tremily.us>\r
+User-Agent: Notmuch/0.18.1+72~g028c560 (http://notmuchmail.org) Emacs/24.3.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Sun, 24 Aug 2014 13:39:23 -0700\r
+Message-ID: <871ts5ei6c.fsf@maritornes.cs.unb.ca>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=utf-8\r
+Content-Transfer-Encoding: quoted-printable\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: Sun, 24 Aug 2014 20:39:33 -0000\r
+\r
+"W. Trevor King" <wking@tremily.us> writes:\r
+>\r
+>> > +__version__ =3D '0.2'\r
+>>=20\r
+>> Do we need/want a version distinct from that of notmuch?\r
+>\r
+> nmbug is very loosely bound to the notmuch core.  To me it feels like\r
+> a separate project that happens to share the same version control\r
+> repository.  I'm happy to synchronize versions, but then we have to\r
+> remember to bump the nmbug version for each notmuch release.\r
+\r
+Unless/until we split nmbug from notmuch I'd rather keep the versions\r
+the same to avoid confusion.  I guess the "right way" (TM) would be\r
+share the hackery used in doc/conf.py to parse the version file and use\r
+it from python.\r
+\r
+>> as a non-native speaker of python, I find this a bit hard to read.\r
+>> How about adding some parens to make the multiple return more clear,\r
+>> so\r
+>>=20\r
+>>     (status, tree, stderr) =3D _git(\r
+>\r
+> That's legal, but I rarely see the parenthesized version in the wild.\r
+> For examples showing the unparenthesized version, see [2,3].\r
+> Parentheses are optional for Python tuples [4], so you'd only want\r
+> them if =E2=80=98=3D=E2=80=99 had a higher precedence than =E2=80=98,=E2=\r
+=80=99.  That's my argument for\r
+> the unparenthesized version, but feel free to overrule me ;).\r
+\r
+I'd rather go with readability (which I admit is subjective) then try to\r
+minimize parens. We're lisp programmers, after all ;).\r