PEP 240 scares me
Rainer Deyke
root at rainerdeyke.com
Thu Mar 22 17:18:55 EST 2001
"Pearu Peterson" <pearu at cens.ioc.ee> wrote in message
news:Pine.LNX.4.21.0103222338530.29360-100000 at kev.ioc.ee...
> It is true that 1/2 == 0 surprise new (Python) programmers (but I quickly
> learned to write 1./2 or 1/2. or 1/float(n) etc).
> But making 1.2 to be a rational
> 1
> ---
> 2
That would be stupid. '1.2' should be the rational '6/5'. To write '1/2',
you would actually write '1/2' (possibly with some operator other than '/').
I don't think anybody was arguing differently.
--
Rainer Deyke (root at rainerdeyke.com)
Shareware computer games - http://rainerdeyke.com
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor
More information about the Python-list
mailing list