Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4a.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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'binary': 0.07; 'reject': 0.07; 'subject:bug': 0.07; '3.0,': 0.09; 'accepted,': 0.09; 'ascii': 0.09; 'interpreted': 0.09; 'mixed': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subset': 0.09; 'thus,': 0.09; 'bug': 0.12; 'jan': 0.12; 'check.': 0.16; 'likewise': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'renamed': 0.16; 'wrote:': 0.18; 'seems': 0.21; 'accepted.': 0.22; 'header:User- Agent:1': 0.23; 'bytes': 0.24; 'unicode': 0.24; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'could': 0.34; 'convert': 0.35; 'operations': 0.35; 'but': 0.35; 'subject:?': 0.36; 'should': 0.36; 'example,': 0.37; 'to:addr:python-list': 0.38; 'short': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'even': 0.60; 'believe': 0.68; 'other.': 0.75; '10:32': 0.84; '2.7.': 0.84; 'received:fios.verizon.net': 0.84; 'universally': 0.84; 'continue.': 0.91; 'received:108': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: bug or feature in enum34 py2.7 backport? Date: Wed, 26 Nov 2014 16:16:21 -0500 References: <1b49aa55-ba5f-4e70-8ddb-ae5dea3a40da@googlegroups.com> <1417010748.2940071.195658861.2859C26B@webmail.messagingengine.com> <1417015925.2961473.195688745.6F0FC175@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-108-16-203-145.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: <1417015925.2961473.195688745.6F0FC175@webmail.messagingengine.com> 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: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1417036626 news.xs4all.nl 2972 [2001:888:2000:d::a6]:58530 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:81610 On 11/26/2014 10:32 AM, random832@fastmail.us wrote: > It seems like if it is a bug to reject long where int is accepted, I do not believe that is universally true is 2.7. But even if it is... Short ints were, value-wise, a subset of longs. Thus, for example, binary operations could always convert the int to long and continue. In 3.0, short ints were removed and long renamed int. > should be likewise considered a bug to reject ASCII-only unicode where > str is accepted. That would require an O(n) check. Bytes and unicode have an ascii overlap when bytes are interpreted as ascii chars, but neither is a subset of the other. Mixed binary operations were removed in 3.x. -- Terry Jan Reedy