>> Use os.remove() instead.
>
> os.remove() and os.unlink() are identical according to the docs; if 
> you look at posix_module.c you can see this is true - they both map 
> to posix_unlink().
>
> Kent

Maybe so, but os.remove() works on my XP box... :-)

I didn't try unlink since the OP said it didn't work. And maybe 
significantly
MS Visual C doesn't (or didn't up to v6) include the unlink system 
call.
So I figured maybe remove was implemented to be system specific.

But it was not a scientific test.

Alan G. 

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to