Why isn't Python king of the hill?
huaiyuan at rac2.wam.umd.edu
Mon Jun 4 02:40:40 CEST 2001
Thomas Wouters <thomas at xs4all.net> writes:
> On Sat, Jun 02, 2001 at 06:12:59PM -0400, Tim Peters wrote:
> > sum = 0
> > for i in range(1, 101):
> > sum += 1/i
> > In floating-point instead they'd get
> > 5.1873775176396206
> This must be a very hypothetical python, given that in current Python they'd
> instead <nudge/wink>.
Not hypothetical; but alternative:
CMUCL release x86-linux 2.5.2 18c+ 2 May 2001 build 2174, running on nomad
Send questions to cmucl-help at cons.org.
Python 1.0, target Intel x86
* (loop for i from 1 to 100 summing (/ 1 i))
* (coerce * 'double-float)
Sorry, couldn't resist...
More information about the Python-list