Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id E08E2429E25 for ; Wed, 2 Nov 2011 00:29:47 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.09 X-Spam-Level: X-Spam-Status: No, score=-0.09 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, T_MIME_NO_TEXT=0.01] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ssAPH+wFFDAl for ; Wed, 2 Nov 2011 00:29:47 -0700 (PDT) Received: from homiemail-a18.g.dreamhost.com (caiajhbdcagg.dreamhost.com [208.97.132.66]) by olra.theworths.org (Postfix) with ESMTP id 64065431FB6 for ; Wed, 2 Nov 2011 00:29:47 -0700 (PDT) Received: from homiemail-a18.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a18.g.dreamhost.com (Postfix) with ESMTP id D3E3925006B; Wed, 2 Nov 2011 00:29:46 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=SSpaeth.de; h=from:to:subject :in-reply-to:references:date:message-id:mime-version: content-type; q=dns; s=sspaeth.de; b=RahxwGlflQxh7YvD1B1pd+918vp I7p1jPTluilx1WG1Df5vppbg+ldXII3zkbpuKd/YGV5+kFUM6r+FHiu+olH2oG+G ckuwUwwIPFUXrcejLktD2tLB4fHNGwWzmNGU3skVzHEYOdeQLBQWfEsD839ufs1K bOuRurecbWqxP8EI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=SSpaeth.de; h=from:to :subject:in-reply-to:references:date:message-id:mime-version: content-type; s=sspaeth.de; bh=QJKtZ0wcO5TbN34aonL3T7KfnOU=; b=d 1mkvViBFsiKgFJCWbuHcNBvv7QJQ0i1EQaJM121Tl37TDMqk/z/RPcLFSe7mS0iG lP9vgFjAFoW6IE1NyR4MxOcVfihmEx4cj77Q4bnO8q/JPWZa4NG61G5pdpvjon2x WmqejxdrHjpIWzdn5eDQ569BarTTGGga/x7j8lZUqY= Received: from spaetzbook.sspaeth.de (mtec-hg-docking-2-dhcp-194.ethz.ch [82.130.121.194]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: fax@sspaeth.de) by homiemail-a18.g.dreamhost.com (Postfix) with ESMTPSA id 4E92B250069; Wed, 2 Nov 2011 00:29:45 -0700 (PDT) Received: by spaetzbook.sspaeth.de (sSMTP sendmail emulation); Wed, 02 Nov 2011 08:29:43 +0100 From: Sebastian Spaeth To: Justus Winter <4winter@informatik.uni-hamburg.de>, notmuch@notmuchmail.org Subject: Re: python: unpythonic result of Message.get_replies() In-Reply-To: References: User-Agent: Notmuch/0.9_rc1-30-g7047975 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Wed, 02 Nov 2011 08:29:42 +0100 Message-ID: <87sjm79e3d.fsf@SSpaeth.de> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Nov 2011 07:29:48 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Wed, 05 Oct 2011 03:42:38 +0200, Justus Winter <4winter@informatik.uni-h= amburg.de> wrote: Non-text part: multipart/mixed > I noticed that Message.get_replies() returns a Messages object *or* > None. Quoting the documentation: >=20 > > Returns: Messages or None if there are no replies to this message >=20 > Messages is a class implementing the iterator protocol, so a python > programmer would expect to get an iterator that raises a StopIteration > on the first invocation of next() if there aren't any replies. >=20 Yes, that change would make perfect sense, and I would be happy to accept a patch for it :-) Sebastian --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk6w8WcACgkQVYX1jMgnoGLx2wCfSrczYAMLIBqGB47mQHlKeZoQ P7sAnidizsPho/jna6wLMPvVXhZ+PyCU =um7P -----END PGP SIGNATURE----- --=-=-=--