google-code-export / winpython

Automatically exported from code.google.com/p/winpython
2 stars 1 forks source link

Enable true division in python 2 version #55

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently, for the 2.7 version winpython uses the default python 2.x division 
behavior (i.e. 1/2 = 0).  However, from python 3, this behavior is changed 
(i.e. 1/2 = .5).  Since winpython is intended for scientific use, having proper 
handling of division is important, and can easily trip up people new to python. 
 So I think it would be a good idea to enable the python 3 behavior in the 
python 2 version of winpython, at least in ipython.  

Original issue reported on code.google.com by toddr...@gmail.com on 7 Jun 2013 at 12:45

GoogleCodeExporter commented 9 years ago
This is far beyond the scope of such a distribution. The intended behavior when 
using Python 2 is the integer division. If anyone would want to switch to the 
float division as a default behavior, the Python startup script (PYTHONSTARTUP 
env var) is the right way of customizing such things for interactive Python 
sessions.

Original comment by pierre.raybaut on 10 Aug 2013 at 12:32