Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.046 X-Spam-Evidence: '*H*': 0.91; '*S*': 0.00; 'cc:addr:python-list': 0.11; 'jan': 0.12; '23,': 0.16; 'bool': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.18; "python's": 0.19; 'cc:addr:python.org': 0.22; 'documented': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'specifically': 0.29; 'andrew': 0.30; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'comparison': 0.31; 'this.': 0.32; 'fri,': 0.33; 'not.': 0.33; 'programmers': 0.33; 'received:google.com': 0.35; 'being': 0.38; 'pm,': 0.38; 'expect': 0.39; 'even': 0.60; 'default': 0.69; '2015': 0.84; '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=HysWN4gljabaE9MZcD+MvjgtNodwMdo/0KbfSBvvr/c=; b=sGBH8oYe2tgIkfIJhqiYUM40msv6d+aGzvgpWBWFHaBRdKuLe4G1aFsnau/hq8l2/I 8+5iP/5zJjl9tWezvKQ8a3Izt/x1uGgyp7XipL7BmyT4AZLlRIThrG3T+WaU8y4u9AWm lbLfOEVluwuWH2/EfSLOm/0wxYDbDkOryJaCvL9My/i5ddd05yX8GOGrPlgOTBBJsNal 5IKyJ6xLqEZIgyD7K8YXlFBav4ufL+XzwU3SnMv73Y4DAnfH1CECTsylnxG0NvSbz5zh QssXtt3MNZWqGa9mtJhHOQSs3vfFQHD2w5XAPqdBRHs4rgYOBrhIDFlxlKUVtDduaSgZ QlRA== MIME-Version: 1.0 X-Received: by 10.224.89.2 with SMTP id c2mr13037443qam.75.1422014284179; Fri, 23 Jan 2015 03:58:04 -0800 (PST) In-Reply-To: <54C2347B.1000405@r3dsolutions.com> References: <54ABB88A.7070504@r3dsolutions.com> <54ABC52A.1050507@davea.name> <54ABE383.3020801@r3dsolutions.com> <54AC97D9.4010504@r3dsolutions.com> <54ACAA04.60801@r3dsolutions.com> <54ADC99F.3020405@stoneleaf.us> <54B44A64.7010105@r3dsolutions.com> <54b4aded$0$2738$c3e8da3$76491128@news.astraweb.com> <54B5B486.7080406@r3dsolutions.com> <54B72D32.3090209@r3dsolutions.com> <54B76B0A.7050706@r3dsolutions.com> <54C2347B.1000405@r3dsolutions.com> Date: Fri, 23 Jan 2015 22:58:03 +1100 Subject: Re: Comparisons and sorting of a numeric class.... 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1422014292 news.xs4all.nl 2885 [2001:888:2000:d::a6]:44193 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:84340 On Fri, Jan 23, 2015 at 10:46 PM, Andrew Robinson wrote: > 4. and he has made bool into the default return type for base type > comparison operators; which means that general programmers expect a bool for > base types and may check for it, even if Python's built in functions do not. I don't get this. They're specifically documented as NOT being required to return a bool, so if any code is type-checking the return values, that code is buggy. ChrisA