消息 [189900]
It works only if input also supports slicing and this slicing is corresponded to bytes-slicing. It perhaps doesn't catch a non C-continuous buffers.
Actually we need something like (unlikely cast() doesn't work with empty buffers):
s = memoryview(s)
if not s:
return b''
s = s.cast('B')
... |
|
| 日期 |
用户 |
动作 |
参数 |
| 2013-05-24 07:01:59 | serhiy.storchaka | 修改 | recipients:
+ serhiy.storchaka, barry, ncoghlan, pitrou, vstinner, ezio.melotti, kushal.das |
| 2013-05-24 07:01:59 | serhiy.storchaka | 修改 | messageid: <1369378919.79.0.0373937710917.issue17839@psf.upfronthosting.co.za> |
| 2013-05-24 07:01:59 | serhiy.storchaka | 链接 | issue17839 messages |
| 2013-05-24 07:01:59 | serhiy.storchaka | 创建 | |
|