In article <[EMAIL PROTECTED]>, Peter Otten <[EMAIL PROTECTED]> wrote: >Mel Wilson wrote: >> The thing is, that once you drop local-namespace >> optimization, the entire function gets slowed down, possibly >> by 40%: >It's not that bad as most of the extra time is spend on compiling the >string. [ ... ] >def fib7(n, c=compile("a, b, i = 0, 1, n", "<nofile>", "exec")): > exec c [ ... ]
! Regards. Mel. -- http://mail.python.org/mailman/listinfo/python-list