Path: csiph.com!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.031 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'operator': 0.03; 'objects,': 0.07; 'here?': 0.09; 'thu,': 0.15; '"in"': 0.16; 'semantically': 0.16; 'wrote:': 0.16; '2015': 0.20; 'meant': 0.22; 'sep': 0.22; 'trying': 0.22; 'am,': 0.23; 'header:In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'comparison': 0.29; 'equality': 0.29; 'operators': 0.29; 'types.': 0.29; 'objects': 0.29; "d'aprano": 0.33; 'int': 0.33; 'steven': 0.33; 'similar': 0.33; 'received:10.0': 0.34; 'could': 0.35; 'but': 0.36; 'to:addr :python-list': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'things': 0.38; 'why': 0.39; 'to:addr:python.org': 0.40; 'received:de': 0.40; 'relationship': 0.61; 'charset:windows-1252': 0.62; 'different': 0.63; 'between': 0.65; 'ugly,': 0.84; 'subject:True': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mail.de; s=mail201212; t=1442425283; bh=7OOG7Vd/5Rnhyz/5upNDhT5dl6lB4rCT7T6uoM03ZQQ=; h=Subject:To:References:From:Date:In-Reply-To:From; b=egtuwwFndLgeSKAmcMXRXZQtE7FdsgP1C14IaQvz7Wb+RQlSDyhk9DM4U0qAc4sXx 6Ib8LGC6FqgohfsUWNowG5EHKxphIS70TQCp3hCp38txt0XrKV4AggHztdejha8i5y 4lsc1TuYKMgOMluxcBsEXUX205DAx19pHpugNbPI= Subject: Re: True == 1 weirdness To: python-list@python.org References: <0b949fe0-09b4-46b0-b4ac-a85a9bfebfd5@googlegroups.com> <1442412230.1762717.385286049.20841F36@webmail.messagingengine.com> <55f9a7e4$0$1661$c3e8da3$5496439d@news.astraweb.com> From: "Sven R. Kunze" Date: Wed, 16 Sep 2015 19:41:21 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <55f9a7e4$0$1661$c3e8da3$5496439d@news.astraweb.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-purgate: clean X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate-type: clean X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate: clean X-purgate-size: 858 X-purgate-ID: 154282::1442425282-00000883-0ABD8F2A/0/0 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ 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: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1442425292 news.xs4all.nl 23791 [2001:888:2000:d::a6]:39653 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:96699 On 16.09.2015 19:33, Steven D'Aprano wrote: > On Thu, 17 Sep 2015 01:40 am, Random832 wrote: > >> "in" suggests a relationship between objects of different types (X and >> "something that can contain X") - all the other comparison operators are >> meant to work on objects of the same or similar types. > `is` and the equality operators are intended to work on arbitrary objects, > as are their inverses `is not` and inequality. > > And with operator overloading, < <= > and => could have any meaning you > like: > > graph = a => b => c <= d <= e > Sorry? What are you trying to do here? >> Why not make isinstance a comparison operator and have "1 instanceof int >> instanceof type"? Having chaining apply to things that are not >> semantically comparisons is just baffling. > Somewhat ugly, I grant you, but if baffling? > > >