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 gvanrossum
Recipients HWJ, amaury.forgeotdarc, bboissin, benjamin.peterson, djc, dlitz, draghuram, georg.brandl, gvanrossum, loewis, pitrou, vstinner, zegreek
Date 2008-10-03.20:55:26
SpamBayes Score 7.933428e-06
Marked as misclassified No
Message-id <1223067328.45.0.951799700316.issue3187@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks Amaury!

On to Georg for doc tweaks.  Summary:

- all the os.path functions now work on bytes as well, on all platforms
- only on Unix (but not OSX) do we recommend using bytes
- os.getcwdu() no longer exists
- os.getcwdb() returns bytes
- os.listdir(<str>) skips undecodable entries (previously it returned a
mixture of str and bytes instances)
- open() accepts bytes as filename

Stuff that didn't change but that you might want to mention:

- all the syscalls in os support bytes args; readlink() and listdir()
return bytes if the arg is bytes
- getcwd() may raise UnicodeDecodeError

Martin already documented sys.setfilesystemencoding().
History
Date User Action Args
2008-10-03 20:55:28gvanrossumsetrecipients: + gvanrossum, loewis, georg.brandl, amaury.forgeotdarc, pitrou, vstinner, draghuram, benjamin.peterson, djc, HWJ, dlitz, zegreek, bboissin
2008-10-03 20:55:28gvanrossumsetmessageid: <1223067328.45.0.951799700316.issue3187@psf.upfronthosting.co.za>
2008-10-03 20:55:27gvanrossumlinkissue3187 messages
2008-10-03 20:55:26gvanrossumcreate