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


Groups > comp.lang.python > #53166

Re: python3 integer division debugging

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <random832@fastmail.us>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.007
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'interpreter': 0.05; 'detect': 0.07; 'received:internal': 0.09; 'changes': 0.15; '2.7:': 0.16; 'message-id:@webmail.messagingengine.com': 0.16; 'porting': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:10.202.2.44': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:compute4.internal': 0.16; 'received:messagingengine.com': 0.16; 'subject:python3': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'seems': 0.21; 'aug': 0.22; '2.2': 0.24; 'integer': 0.24; 'source': 0.25; 'header:In-Reply-To:1': 0.27; 'errors': 0.30; 'mode': 0.30; 'code': 0.31; 'division': 0.31; 'received:66': 0.35; 'there': 0.35; 'version': 0.36; 'received:10': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'problems.': 0.60; 'most': 0.60; 'from:no real name:2**0': 0.61; 'header:Message-Id:1': 0.63; 'such': 0.63; 'wish': 0.70; '2013,': 0.91; 'silent': 0.95
DKIM-Signature v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.us; h= message-id:from:to:mime-version:content-transfer-encoding :content-type:in-reply-to:references:subject:date; s=mesmtp; bh= 2lgcmOY8a3LsWPnyPpCXOnGut7I=; b=FqGNSWI+RHcEGy8Hx8tGCaNdHu//w06h tBe4ZAQXNf/rrZDfZ28wvuNKOt7BnWA4YlLJKkfozTfVGNldwdhcEyz/m6T0r1Ty VPBYpyJ6cKF+7rs06DsMrE08UtwPoz09HsuyqM2KJb3XlMzDQGB4Vn5ltQFFhrgx skwbKA8LBD0=
DKIM-Signature v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:mime-version :content-transfer-encoding:content-type:in-reply-to:references :subject:date; s=smtpout; bh=2lgcmOY8a3LsWPnyPpCXOnGut7I=; b=msx QTenAIVF4YVY6LpUmhuslIOulpJDllhj6mhiBKoJEKPj4ZGx/Mp5+1Cf1hgtQH90 D7sWaeFaJMWdFHIKeIyb4V22zYVx5p4a+AhCZj/qCwxtQfjCKjhPfel1TdUGODtk P9kv+rir9kuIqQ1Z6FsqMw4SEQT/tXV99tkgc0Js=
X-Sasl-Enc DLzu6aVil0bZE+vGyrAOvKiDPT1S+Xwd6vta5m7jUgI1 1377703443
From random832@fastmail.us
To python-list@python.org
MIME-Version 1.0
Content-Transfer-Encoding 7bit
Content-Type text/plain
X-Mailer MessagingEngine.com Webmail Interface - ajax-be0d4992
In-Reply-To <kvl470$b86$1@ger.gmane.org>
References <kvl470$b86$1@ger.gmane.org>
Subject Re: python3 integer division debugging
Date Wed, 28 Aug 2013 11:24:03 -0400
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 <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.315.1377703457.19984.python-list@python.org> (permalink)
Lines 11
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1377703457 news.xs4all.nl 15968 [2001:888:2000:d::a6]:53836
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:53166

Show key headers only | View raw


On Wed, Aug 28, 2013, at 11: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.

There is such a mode in python2 from version 2.2 through 2.7: -Q warn.

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


Thread

Re: python3 integer division debugging random832@fastmail.us - 2013-08-28 11:24 -0400

csiph-web