[Tutor] File renaming using os.rename problem (spir)

Roy Hinkelman royhink at gmail.com
Tue Dec 8 21:27:31 CET 2009


Why don't you simply print out fname? This should point you to the error.

Denis


I did here:
>         if fname == old_name:
>             print fname # test

and it looks correct.

On an WinXP, should I use shutil instead?

Roy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20091208/f468151e/attachment.htm>


More information about the Tutor mailing list