Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #85945

Re: What behavior would you expect?

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 <rosuav@gmail.com>
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 <mc6emp$j1q$1@dont-email.me>
References <mailman.18856.1424321059.18130.python-list@python.org> <mc4r7v$cm7$2@dont-email.me> <mailman.18884.1424358984.18130.python-list@python.org> <mc5fiq$a3f$3@dont-email.me> <mailman.18902.1424376675.18130.python-list@python.org> <mc6emp$j1q$1@dont-email.me>
Date Fri, 20 Feb 2015 16:16:50 +1100
Subject Re: What behavior would you expect?
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.18908.1424409419.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Fri, Feb 20, 2015 at 3:54 PM, Dan Sommers <dan@tombstonezero.net> 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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

What behavior would you expect? Jason Friedman <jsf80238@gmail.com> - 2015-02-18 21:44 -0700
  Re: What behavior would you expect? Denis McMahon <denismfmcmahon@gmail.com> - 2015-02-19 14:16 +0000
    Re: What behavior would you expect? Chris Angelico <rosuav@gmail.com> - 2015-02-20 02:08 +1100
      Re: What behavior would you expect? Denis McMahon <denismfmcmahon@gmail.com> - 2015-02-19 20:03 +0000
        Re: What behavior would you expect? Chris Angelico <rosuav@gmail.com> - 2015-02-20 07:11 +1100
          Re: What behavior would you expect? Dan Sommers <dan@tombstonezero.net> - 2015-02-20 04:54 +0000
            Re: What behavior would you expect? Chris Angelico <rosuav@gmail.com> - 2015-02-20 16:16 +1100
              Re: What behavior would you expect? Dan Sommers <dan@tombstonezero.net> - 2015-02-20 05:40 +0000
                Re: What behavior would you expect? Jason Friedman <jsf80238@gmail.com> - 2015-02-19 22:49 -0700
                Re: What behavior would you expect? Paul Rubin <no.email@nospam.invalid> - 2015-02-19 22:18 -0800
                Re: What behavior would you expect? Chris Angelico <rosuav@gmail.com> - 2015-02-20 17:21 +1100
                Re: What behavior would you expect? Paul Rubin <no.email@nospam.invalid> - 2015-02-19 23:18 -0800

csiph-web