消息 [74240]
> 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. |
|
| 日期 |
用户 |
动作 |
参数 |
| 2008-10-03 11:31:38 | pitrou | 修改 | recipients:
+ pitrou, gvanrossum, loewis, amaury.forgeotdarc, vstinner, draghuram, benjamin.peterson, djc, HWJ, dlitz, zegreek, bboissin |
| 2008-10-03 11:31:37 | pitrou | 链接 | issue3187 messages |
| 2008-10-03 11:31:36 | pitrou | 创建 | |
|