[Twisted-Python] deferDirWalk code snipped

Itamar Shtull-Trauring itamar at itamarst.org
Wed Mar 3 15:47:00 EST 2004

On Wed, 2004-03-03 at 15:16, Michal Pasternak wrote:

>  If someone would like to comment on my code, feel
> free to do it, I always like constructive criticism ;)

Separate the code into two parts - an iterator (probably using
generators) that walks a directory, and then a Twisted wrapper that uses
reactor scheduling to spread it out over time.

Itamar Shtull-Trauring    http://itamarst.org
Looking for a job: http://itamarst.org/resume.html

More information about the Twisted-Python mailing list