
wrong! I did use Python: $ python3 Python 3.0.1+ (r301:69556, Apr 15 2009, 15:59:22) [GCC 4.3.3] on linux2 Type "help", "copyright", "credits" or "license" for more information.
3/2 1.5 3//2 1
Surely we're not discussing an idea just for Python 2.x, are we? On Wed, Sep 23, 2009 at 10:16 AM, Masklinn <masklinn@masklinn.net> wrote:
On 23 Sep 2009, at 15:25 , Gerald Britton wrote:
Ironically, since this is a Python list:
3/2
1.5
I have to be explicit to get integer division:
3//2
1
which is precisely my point
Unless you're using Python:
3/2 1
You have to be explicit to get true division:
3./2 1.5
_______________________________________________ Python-ideas mailing list Python-ideas@python.org http://mail.python.org/mailman/listinfo/python-ideas
-- Gerald Britton