Message74271
| 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: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 |
|