➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 serhiy.storchaka
收信人 barry, ezio.melotti, kushal.das, ncoghlan, pitrou, serhiy.storchaka, vstinner
日期 2013-05-24.07:01:59
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1369378919.79.0.0373937710917.issue17839@psf.upfronthosting.co.za>
In-reply-to
内容
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:59serhiy.storchaka修改recipients: + serhiy.storchaka, barry, ncoghlan, pitrou, vstinner, ezio.melotti, kushal.das
2013-05-24 07:01:59serhiy.storchaka修改messageid: <1369378919.79.0.0373937710917.issue17839@psf.upfronthosting.co.za>
2013-05-24 07:01:59serhiy.storchaka链接issue17839 messages
2013-05-24 07:01:59serhiy.storchaka创建