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.

Author serhiy.storchaka
Recipients barry, ezio.melotti, kushal.das, ncoghlan, pitrou, serhiy.storchaka, vstinner
Date 2013-05-24.07:01:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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')
Date User Action Args
2013-05-24 07:01:59serhiy.storchakasetrecipients: + serhiy.storchaka, barry, ncoghlan, pitrou, vstinner, ezio.melotti, kushal.das
2013-05-24 07:01:59serhiy.storchakasetmessageid: <>
2013-05-24 07:01:59serhiy.storchakalinkissue17839 messages
2013-05-24 07:01:59serhiy.storchakacreate