PEP0238 lament

Aahz Maruch aahz at panix.com
Fri Jul 27 20:39:48 EDT 2001


In article <e4O67.17873$EP6.4677310 at news1.rdc2.pa.home.com>,
Terry Reedy <tjreedy at home.com> wrote:
>
>Moshe's current proposal cleanly separates the two types: '/' will be
>fractional result and '//' will be integer result (including
>floor(float/float)).  So 8/3 = 8.0/3.0 = 2.33333, while 8//3 = 2 and
>8.0//3.0 = 3.0, which is the same to within type, just as 3+8 ==
>(withing type) 3.0+8.0.  (I am not sure about complex//complex since I
>an not sure if floor(complex) is defined -- floor(x) + floor(y)*j?)
>This is arguably what Python should have started with.

Uh, I think you meant 2.666666667 and 2.0 up there.
-- 
                      --- Aahz  <*>  (Copyright 2001 by aahz at pobox.com)

Hugs and backrubs -- I break Rule 6                 http://www.rahul.net/aahz/
Androgynous poly kinky vanilla queer het Pythonista   

Fortune cookie: Watch your relations with other people carefully, be reserved.



More information about the Python-list mailing list