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


Groups > comp.lang.python > #53167 > unrolled thread

Re: python3 integer division debugging

Started byChris Angelico <rosuav@gmail.com>
First post2013-08-29 01:26 +1000
Last post2013-08-29 01:26 +1000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: python3 integer division debugging Chris Angelico <rosuav@gmail.com> - 2013-08-29 01:26 +1000

#53167 — Re: python3 integer division debugging

FromChris Angelico <rosuav@gmail.com>
Date2013-08-29 01:26 +1000
SubjectRe: python3 integer division debugging
Message-ID<mailman.316.1377703609.19984.python-list@python.org>
On Thu, Aug 29, 2013 at 1:21 AM, Oscar Benjamin
<oscar.j.benjamin@gmail.com> wrote:
> On 28 August 2013 16:15, Neal Becker <ndbecker2@gmail.com> 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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web