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 matrixise, ronaldoussoren, salty-horse, serhiy.storchaka
Date 2019-02-21.16:01:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1550764911.22.0.407043625317.issue36065@roundup.psfhosted.org>
In-reply-to
Content
If you need to support only bytes and bytearray, but not other bytes-like object, this is a too special case. It is easy to write your own macros or functions that wrap existing C API. Other option -- duplicate the code and replace PyBytes_ with PyByteArray_. In all cases be aware abot differences between bytes and bytearray: bytarray can change its content and size, saved values of PyByteArray_AS_STRING(ob) and PyByteArray_GET_SIZE(self) can not be used after executing arbitrary code in destructors or releasing GIT.
History
Date User Action Args
2019-02-21 16:01:51serhiy.storchakasetrecipients: + serhiy.storchaka, ronaldoussoren, salty-horse, matrixise
2019-02-21 16:01:51serhiy.storchakasetmessageid: <1550764911.22.0.407043625317.issue36065@roundup.psfhosted.org>
2019-02-21 16:01:51serhiy.storchakalinkissue36065 messages
2019-02-21 16:01:51serhiy.storchakacreate