Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #53168
| From | Neal Becker <ndbecker2@gmail.com> |
|---|---|
| Subject | Re: python3 integer division debugging |
| Date | 2013-08-28 11:29 -0400 |
| References | <kvl470$b86$1@ger.gmane.org> <CAHVvXxTZbGxximAXq0y_mmiou7SNCZvacYTSkVXZBEKJzCduMg@mail.gmail.com> <CAPTjJmqUpC=vYnnWzg6wOwNAEBeMS-oLXG4qdeVVDeKA593VVg@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.317.1377703777.19984.python-list@python.org> (permalink) |
Chris Angelico wrote: > 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 Ah! I looked for it in python3. Funny it isn't there as well. Thanks!
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: python3 integer division debugging Neal Becker <ndbecker2@gmail.com> - 2013-08-28 11:29 -0400
csiph-web