Trouble getting loop to break

Fredrik Johansson fredrik.johansson at gmail.com
Sun Nov 25 12:26:05 CET 2007


On Nov 25, 2007 9:00 AM, Dick Moores <rdm at rcblue.com> wrote:
> Fredrik,
>
> I'm afraid I'm just too dumb to see how to use your first suggestion
> of cached_factorials. Where do I put it and def()? Could you show me,
> even on-line, what to do? <http://py77.python.pastebin.com/f48e4151c>
> You (or anyone) can submit an amendment to my code using the textbox.
>
> I did make the denom change, and see that it does improve the speed a bit.

I edited the pastebin code, see: http://py77.python.pastebin.com/m6b2b34b7

Fredrik



More information about the Python-list mailing list