Message248134
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. |
|
Date |
User |
Action |
Args |
2015-08-06 16:50:23 | martin.panter | set | recipients:
+ martin.panter, pitrou, skrah, dabeaz, cblp, eryksun, josh.r |
2015-08-06 16:50:23 | martin.panter | set | messageid: <1438879823.21.0.904801548367.issue15944@psf.upfronthosting.co.za> |
2015-08-06 16:50:22 | martin.panter | link | issue15944 messages |
2015-08-06 16:50:22 | martin.panter | create | |
|