deltree function

Jonadab the Unsightly One jonadab at bright.net
Tue Sep 19 13:43:14 CEST 2000


gangli at msn.com wrote:

> why not use a python function that works everywhere

Maybe because your code is over twenty lines, and
shelling out to deltree is a line or two -- and
the original poster made it clear that he was on
a Windoze system and that it doesn't need to
work everywhere.

(OTOH, after I wrote this I saw the code Bjorn 
Petterson posted, which is short enough to be a 
good substitute for shelling out, even in a 
single-OS situation where portability is a 
non-issue.)

- jonadab



More information about the Python-list mailing list