how can this iterator be optimized?

Basilisk96 basilisk96 at gmail.com
Mon Feb 16 18:45:54 CET 2009


On Feb 14, 10:19 am, Paul McGuire <pt... at austin.rr.com> wrote:
> If func is expensive, you could try memoizing it.  Then subsequent
> "calls" just do arg lookups.  Michele Simianato has posted a good
> memoizing decorator on the Python wiki.
>
> -- Paul

That's the trick! I almost forgot about that one. Thanks!
-Basilisk96



More information about the Python-list mailing list