Message74271
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(). |
|
Date |
User |
Action |
Args |
2008-10-03 20:55:28 | gvanrossum | set | recipients:
+ gvanrossum, loewis, georg.brandl, amaury.forgeotdarc, pitrou, vstinner, draghuram, benjamin.peterson, djc, HWJ, dlitz, zegreek, bboissin |
2008-10-03 20:55:28 | gvanrossum | set | messageid: <1223067328.45.0.951799700316.issue3187@psf.upfronthosting.co.za> |
2008-10-03 20:55:27 | gvanrossum | link | issue3187 messages |
2008-10-03 20:55:26 | gvanrossum | create | |
|