[Python-ideas] [Wild Idea] Static Ducks

Gerald Britton gerald.britton at gmail.com
Wed Sep 23 16:21:07 CEST 2009


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 at 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 at python.org
> http://mail.python.org/mailman/listinfo/python-ideas
>



-- 
Gerald Britton



More information about the Python-ideas mailing list