os.lisdir, gets unicode, returns unicode... USUALLY?!?!?
"Martin v. Löwis"
martin at v.loewis.de
Fri Nov 17 00:59:36 EST 2006
Jean-Paul Calderone schrieb:
>> How would you propose listdir should behave?
>
> Umm, just a wild guess, but how about raising an exception which includes
> the name of the file which could not be decoded?
There may be multiple of these, of course, but I assume that you want
it to report the first one it encounters?
Regards,
Martin
More information about the Python-list
mailing list