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 pitrou
Recipients martin.panter, pitrou, serhiy.storchaka, vstinner
Date 2016-04-14.18:29:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1460658575.52.0.327148701143.issue26759@psf.upfronthosting.co.za>
In-reply-to
Content
> Note that there is alternative API function PyObject_Bytes(), that accepts same arguments as the bytes() constructor, except an integer, and supports the buffer protocol, the iterable protocol, and in additional supports the __bytes__() special method.

That's a good point. Then I think PyBytes_FromObject() should be restricted. Also the docs for these functions should probably mention each other.
History
Date User Action Args
2016-04-14 18:29:35pitrousetrecipients: + pitrou, vstinner, martin.panter, serhiy.storchaka
2016-04-14 18:29:35pitrousetmessageid: <1460658575.52.0.327148701143.issue26759@psf.upfronthosting.co.za>
2016-04-14 18:29:35pitroulinkissue26759 messages
2016-04-14 18:29:35pitroucreate