Message74240
| Author |
pitrou |
| Recipients |
HWJ, amaury.forgeotdarc, bboissin, benjamin.peterson, djc, dlitz, draghuram, gvanrossum, loewis, pitrou, vstinner, zegreek |
| Date |
2008年10月03日.11:31:36 |
| SpamBayes Score |
9.734202e-09 |
| Marked as misclassified |
No |
| Message-id |
<1223033492.23259.2.camel@fsol> |
| In-reply-to |
<200810031238.20821.victor.stinner@haypocalc.com> |
| Content |
> You should also support bytearray() in ntpath:
> isinstance(path, (bytes, bytearray))
The most generic way of allowing all bytes-alike objects is to write:
path = bytes(path)
It raises a TypeError if `path` can't export a read-only buffer of
contiguous bytes; also, it is a no-op if `path` is already a bytes
object, so very cheap in the common case. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2008年10月03日 11:31:38 | pitrou | set | recipients:
+ pitrou, gvanrossum, loewis, amaury.forgeotdarc, vstinner, draghuram, benjamin.peterson, djc, HWJ, dlitz, zegreek, bboissin |
| 2008年10月03日 11:31:37 | pitrou | link | issue3187 messages |
| 2008年10月03日 11:31:36 | pitrou | create |
|