This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Divide error on Windows 7 Home Premium 64 bits
Type: behavior Stage:
Components: Interpreter Core, Windows Versions: Python 2.6
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: f_dufour, mark.dickinson
Priority: normal Keywords:

Created on 2010-03-16 00:07 by f_dufour, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg101140 - (view) Author: Francois (f_dufour) Date: 2010-03-16 00:07
On a freshly installed Python 2.6.4, the division / truncates the result to the lower integer as // should.

This occurs on both the current 32 and 64 bits builds.

This is shown in the attached picture.
msg101167 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2010-03-16 13:14
I see that you already closed this;  but just for completeness:

This is expected behaviour:  in 2.x, the '/' operator does floor division unless you've done a 'from __future__ import division', in which case it does true division.

In 3.x, '/' always does floor division.
History
Date User Action Args
2022-04-11 14:56:58adminsetgithub: 52399
2010-03-16 13:14:43mark.dickinsonsetresolution: not a bug

messages: + msg101167
nosy: + mark.dickinson
2010-03-16 00:12:45f_dufoursetstatus: open -> closed
2010-03-16 00:11:54f_dufoursetfiles: - python_interpreter.png
2010-03-16 00:07:43f_dufourcreate