[Twisted-Python] deferDirWalk code snipped

Douglas Bagnall douglas at paradise.net.nz
Thu Mar 4 04:04:58 MST 2004


Itamar Shtull-Trauring wrote:
> 
> Separate the code into two parts - an iterator (probably using
> generators) that walks a directory, 

which could perhaps be 2.3's os.walk, or derived thereof.  It's tiny.

http://cvs.sf.net/viewcvs.py/python/python/dist/src/Lib/os.py?rev=1.74&view=auto

> and then a Twisted wrapper that uses
> reactor scheduling to spread it out over time.
> 

douglas




More information about the Twisted-Python mailing list