This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author loewis
Recipients belopolsky, brian.curtin, loewis, r.david.murray, tim.golden, wyj1046
Date 2010-12-22.06:18:56
SpamBayes Score 2.4997973e-06
Marked as misclassified No
Message-id <1292998743.49.0.429969251116.issue10754@psf.upfronthosting.co.za>
In-reply-to
Content
On Windows, using the bytes APIs for filenames is unreliable and fails for characters that are not in the ANSI code page. So you should use

import os
for i in os.listdir(u'.'):
    print os.path.isfile(i), '\t', i

instead.
History
Date User Action Args
2010-12-22 06:19:03loewissetrecipients: + loewis, belopolsky, tim.golden, r.david.murray, brian.curtin, wyj1046
2010-12-22 06:19:03loewissetmessageid: <1292998743.49.0.429969251116.issue10754@psf.upfronthosting.co.za>
2010-12-22 06:18:56loewislinkissue10754 messages
2010-12-22 06:18:56loewiscreate