![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archiveRe: "pow" (power) function
From: Mike Ressler <mike.ressler@alum.mit.edu>
Date: Thu Mar 16 2006 - 18:23:57 CET
On Wed, 2006-03-15 at 18:46 -0800, Ben Cartwright wrote:
> Anyway, if you want to see the int vs. float issue in action, try this:
I have a counterexample. In the original timeit example, 111**111 was
>>> timeit.Timer("pow(111,111)").timeit()
The pow and ** on integers take 10 seconds, but the float ** takes only
Mike
|