Re: Is Python terribly slow ?
Sun, 06 Feb 1994 18:19:25 +0100
> Note that the current string.atof doesn't always return a float:
> >>> 4/string.atof('5')
> >>> type( string.atof('5') )
> <type 'int'>
> I expect that a side-effect of reimplementing it in C is that atof will
> always return a float (given legit input). True?
Yes. The behavior you noticed was completely unintentional...
--Guido van Rossum, CWI, Amsterdam <Guido.van.Rossum@cwi.nl>