OT: losing memories (was Re: How many of you are Extreme Programmers?)

Dave Benjamin ramen at lackingtalent.com
Fri Apr 25 17:57:30 EDT 2003


In article <pan.2003.04.25.17.49.27.407432 at jerf.org>, Jeremy Bowers wrote:
> for memory in brain.iter_memories():
> 	print memory

Of course! I knew iterators were useful for something... it would take an
awful lot of memory to construct a list first.

> Implementation of the brain object left as an exercise for the reader. I
> know it can be done, as I am in possession of such an object right now.

It'd make for one hell of a base class.

Dave




More information about the Python-list mailing list