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


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

Re: python3 integer division debugging

Started byTerry Reedy <tjreedy@udel.edu>
First post2013-08-28 15:23 -0400
Last post2013-08-28 15:23 -0400
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 Terry Reedy <tjreedy@udel.edu> - 2013-08-28 15:23 -0400

#53180 — Re: python3 integer division debugging

FromTerry Reedy <tjreedy@udel.edu>
Date2013-08-28 15:23 -0400
SubjectRe: python3 integer division debugging
Message-ID<mailman.324.1377717844.19984.python-list@python.org>
On 8/28/2013 11:15 AM, 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.

In Python since 2.??, put 'from __future__ import integer_division' 
(sp?) at the top of your code


-- 
Terry Jan Reedy

[toc] | [standalone]


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


csiph-web