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 ezio.melotti
Recipients ceder, ezio.melotti, georg.brandl
Date 2009-07-04.00:58:06
SpamBayes Score 1.3191487e-10
Marked as misclassified No
Message-id <1246669088.89.0.730546770727.issue3810@psf.upfronthosting.co.za>
In-reply-to
Content
At the beginning of the page[1] there's a note that says: "All functions
accepting path or file names accept both bytes and string objects, and
result in an object of the same type, if a path or file name is returned."
This applies to os.chdir() too (both work, however it doesn't return
anything).

The doc for os.listdir[2] now says: "This function can be called with a
bytes or string argument. In the bytes case, all filenames will be
listed as returned by the underlying API. In the string case, filenames
will be decoded using the file system encoding, and skipped if a
decoding error occurs." so the second problem you mentioned seems
already fixed.

[1]: http://docs.python.org/3.0/library/os.html#module-os
[2]: http://docs.python.org/3.0/library/os.html#os.listdir
History
Date User Action Args
2009-07-04 00:58:09ezio.melottisetrecipients: + ezio.melotti, georg.brandl, ceder
2009-07-04 00:58:08ezio.melottisetmessageid: <1246669088.89.0.730546770727.issue3810@psf.upfronthosting.co.za>
2009-07-04 00:58:07ezio.melottilinkissue3810 messages
2009-07-04 00:58:06ezio.melotticreate