Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.078 X-Spam-Evidence: '*H*': 0.86; '*S*': 0.02; 'subject:would': 0.07; 'dan': 0.09; 'cc:addr:python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'return,': 0.16; 'wrote:': 0.18; 'feb': 0.22; 'cc:addr:python.org': 0.22; 'string,': 0.24; 'cc:2**0': 0.24; 'values': 0.27; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'though.': 0.31; 'fri,': 0.33; 'sense': 0.34; 'received:google.com': 0.35; 'there': 0.35; 'returning': 0.36; 'subject:?': 0.36; 'list': 0.37; 'pm,': 0.38; '20,': 0.68; '2015': 0.84; 'collection.': 0.84; 'subject:you': 0.87; 'notion': 0.91; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=nvptiTr/NattAgoOgcOmiriGtAXhooIG+Kr2Qw16Lt8=; b=YfLTzFTjrSGsv+qyULBbSzzj7fgqQLGoL5k8CHWWrKrU+oYqvJRI03fdbp3eMkfqO9 CMi7lEFE55X+iuZNUxRlVTg+YHzRCORQWrb7zpSa1B7FGGqbrdesNqdROi7lijFuI9ba PWzryFSo+Nk3G+4nxfUfV/5sR56EGI2cNXCkn1CRBV01NzqtXsXYBAD7jm3zb96fP8xi ehQsKuCyyPmhHx/6Iy4OpiDMR4p9a/dDybNVlCvV9U2eQf/gRnLYesSVkP3qdw+eHhhc PzPSsdmAhjQj9eaDbkeTsPcXMwmgAaZqi2ARKjsExDmquPVzJpRkWYDAx2zJRMgzou2g kf3A== MIME-Version: 1.0 X-Received: by 10.50.79.161 with SMTP id k1mr12230026igx.14.1424409411039; Thu, 19 Feb 2015 21:16:51 -0800 (PST) In-Reply-To: References: Date: Fri, 20 Feb 2015 16:16:50 +1100 Subject: Re: What behavior would you expect? From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 10 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1424409419 news.xs4all.nl 2905 [2001:888:2000:d::a6]:41718 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:85945 On Fri, Feb 20, 2015 at 3:54 PM, Dan Sommers wrote: > if there are no > values to return, then return an empty collection. That one makes sense only if you were going to return a collection anyway, though. If you were going to return a string, returning an empty list on failure makes no sense. Hence the notion of returning a "non-string". ChrisA