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 ncoghlan
Recipients Arfrever, alex, certik, dmalcolm, loewis, ncoghlan, pitrou, skrah, teoliphant, vstinner
Date 2012-08-03.00:18:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1343953134.27.0.983729668691.issue15540@psf.upfronthosting.co.za>
In-reply-to
Content
While I agree this is important (e.g. I know Dave started looking into this as getting NumPy working is currently a blocker for Fedora migrating their Python 3 stack to 3.3), the burden is definitely on the NumPy side to get the code point values using the right byte order before handing them over to the CPython API. If the sanity checks in the Unicode implementation are firing, it means something is still wrong on the NumPy side (perhaps erroneous unit tests, as Stefan reports).

From the point of view of CPython, an array of byte-swapped code points isn't text, it's an array of 16 or 32 bit integers, and NumPy's text handling needs to work within that constraint.

FWIW, with regard to Martin's tangential comment about appropriate use of the tracker, I'm personally fine with using the tracker for 'I found this problem, attempted to fix it (but failed), here's my attempt'. It's part of the wide spectrum of issue reporting that ranges from 'I found this problem, but have no idea what is causing it or where to even begin trying to fix it' through 'I found this problem, here's a fix that worked for me' all the way to 'I found this problem, here's a fix that works on multiple platforms with new tests, insightful doc adjustments and a pony' :)
History
Date User Action Args
2012-08-03 00:18:56ncoghlansetrecipients: + ncoghlan, loewis, teoliphant, pitrou, vstinner, Arfrever, certik, alex, skrah, dmalcolm
2012-08-03 00:18:54ncoghlansetmessageid: <1343953134.27.0.983729668691.issue15540@psf.upfronthosting.co.za>
2012-08-03 00:18:53ncoghlanlinkissue15540 messages
2012-08-03 00:18:50ncoghlancreate