[Python-Dev] Slash and burn in Tools/scripts. Objections?

Skip Montanaro skip@pobox.com
2002年3月13日 20:15:10 -0600


 >> "Traverse, maybe modify and replace" is a non-trivial but
 >> non-excruciating blob of code that gets reinvented repeatedly, so
 >> pointless variations are bound to creep in.
 >> 
 >> 'Twould be nice to factor that out into a common, consistent utility.
 Trent> Any pointers on which script might have the best crack at that?
 Trent> reindent.py? tabnanny.py? another?
Mailman has a script called 'withlist' that implements the basic "loop over
everything in the list". The caller provides the name of a callable object
that is called, more or less like os.path.walk. Might be a good place to
look.
Skip

AltStyle によって変換されたページ (->オリジナル) /