Trouble getting loop to break

Dick Moores rdm at rcblue.com
Sun Nov 25 08:47:06 EST 2007


At 03:26 AM 11/25/2007, Fredrik Johansson wrote:
>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

Wow. your f() is ingenious, Frederik. Thanks very much.

Any more tricks up your sleeve? You did say a post or so ago, 
"Further improvements are possible."

Dick






More information about the Python-list mailing list