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 martin.panter
Recipients cblp, dabeaz, eryksun, josh.r, martin.panter, pitrou, skrah
Date 2015-08-06.16:50:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1438879823.21.0.904801548367.issue15944@psf.upfronthosting.co.za>
In-reply-to
Content
Here is a patch that allows any “C-contiguous” memoryview() to be cast to a byte view. Apart from the test that was explicitly checking that this wasn’t supported, the rest of the test suite still passes. I basically removed the check that was generating the “source format must be a native single character” error.

If two NANs are represented by the same byte sequence, I would expect their byte views to compare equal, which is the case with my patch.
History
Date User Action Args
2015-08-06 16:50:23martin.pantersetrecipients: + martin.panter, pitrou, skrah, dabeaz, cblp, eryksun, josh.r
2015-08-06 16:50:23martin.pantersetmessageid: <1438879823.21.0.904801548367.issue15944@psf.upfronthosting.co.za>
2015-08-06 16:50:22martin.panterlinkissue15944 messages
2015-08-06 16:50:22martin.pantercreate