Path: csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed4.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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'interpreter': 0.05; 'detect': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; "wouldn't": 0.14; 'changes': 0.15; 'ah!': 0.16; 'benjamin': 0.16; "guido's": 0.16; 'porting': 0.16; 'python3.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:python3': 0.16; 'wrote:': 0.18; 'looked': 0.18; 'thu,': 0.19; 'seems': 0.21; 'machine': 0.22; '>>>': 0.22; 'aug': 0.22; 'header:User-Agent:1': 0.23; 'integer': 0.24; 'source': 0.25; 'header:X-Complaints-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'errors': 0.30; 'mode': 0.30; 'code': 0.31; 'division': 0.31; 'thanks!': 0.32; 'run': 0.32; 'another': 0.32; 'there': 0.35; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'problems.': 0.60; 'most': 0.60; 'august': 0.61; 'such': 0.63; 'wish': 0.70; 'funny': 0.74; 'joke,': 0.84; 'oscar': 0.84; 'received:139': 0.84; 'silent': 0.95; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Neal Becker Subject: Re: python3 integer division debugging Date: Wed, 28 Aug 2013 11:29:23 -0400 References: Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Gmane-NNTP-Posting-Host: exa2-in-fw-01-epn.hns.com User-Agent: KNode/4.10.5 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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1377703777 news.xs4all.nl 15973 [2001:888:2000:d::a6]:59373 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:53168 Chris Angelico wrote: > On Thu, Aug 29, 2013 at 1:21 AM, Oscar Benjamin > wrote: >> On 28 August 2013 16:15, Neal Becker wrote: >>> The change in integer division seems to be the most insidious source of >>> silent errors in porting code from python2 - since it changes the behaviour >>> or valid code silently. >>> >>> I wish the interpreter had an instrumented mode to detect and report such >>> problems. >> >> Is that a joke? >> >> Run the code under Python 2.6/2.7 with the -3 flag: > > I wouldn't say that's a joke, it's just another demonstration of > Guido's time machine :) > > ChrisA Ah! I looked for it in python3. Funny it isn't there as well. Thanks!