re bad leadership

Paul Boddie paul at boddie.net
Wed Jul 25 06:16:40 EDT 2001


"Terry Reedy" <tjreedy at home.com> wrote in message news:<u3s77.26512$EP6.6584330 at news1.rdc2.pa.home.com>...

[Attribution lost!]

> > > > So why not swap the proposed meanings of // and /?  I realize
> > > > this is the third time I've said this but I think it would silence a
> > > > lot of objections and no one seems to have noticed the other two times.
> 
> PEP238 proposes that / be the inverse of *, so that '(a/b) * b = a
> (more or less)' and that 'a // b == floor(a/b)'.  If we 'swap the proposed
> meanings of // and /', then we would have a/b == floor(a/b), which would
> break almost all existing floating point code.

I suspect that the contributor who made the above unattributed
suggestion actually meant that the meanings should be swapped
intelligently in the PEP in such a way that the explanatory text be
altered accordingly.

Paul



More information about the Python-list mailing list