[Python-Dev] Slash and burn in Tools/scripts. Objections? (original) (raw)
Skip Montanaro skip@pobox.com
Wed, 13 Mar 2002 20:15:10 -0600
- Previous message: [Python-Dev] Slash and burn in Tools/scripts. Objections?
- Next message: [Python-Dev] Slash and burn in Tools/scripts. Objections?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>> "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
- Previous message: [Python-Dev] Slash and burn in Tools/scripts. Objections?
- Next message: [Python-Dev] Slash and burn in Tools/scripts. Objections?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]