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


Groups > comp.lang.python > #53180

Re: python3 integer division debugging

From Terry Reedy <tjreedy@udel.edu>
Subject Re: python3 integer division debugging
Date 2013-08-28 15:23 -0400
References <kvl470$b86$1@ger.gmane.org>
Newsgroups comp.lang.python
Message-ID <mailman.324.1377717844.19984.python-list@python.org> (permalink)

Show all headers | View raw


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

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


Thread

Re: python3 integer division debugging Terry Reedy <tjreedy@udel.edu> - 2013-08-28 15:23 -0400

csiph-web