Martin v. Löwis a écrit :

Without having seen any details, I refuse to guess. Most likely, it is
a user mistake.

YES IT IS! Sorry for the inconvenience. I usually start from this assumption. Yesterday this new student was really agressive, and I assumed he was right!

Here's his mistake: with Windows the name of the directory rooted at a drive name (say C:) is called 'C:\' not 'C:', and it's been that way for ages. Well, os.listdir('C:') instead of raising an exception, for some reason behaves like os.listdir('.').
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to