Message167271
On Aug 2, 2012, at 5:28 PM, Antoine Pitrou wrote:
>
> Antoine Pitrou added the comment:
>
> Agreed with Martin. Byte-swapped unicode data in unicode objects doesn't make sense, since it will break the semantics of many operations. If numpy wants to support byte-swapped unicode data (what for?), they should store it in a different object type.
This is a mis-understanding of what NumPy does and why. There is a need to byte-swap only when the data is stored on disk in the reverse order from the native machine (i.e. NumPy is pointing to memory-mapped data).
The byte-swapping must be done prior to conversion to a Python Unicode-Object when selecting data out of the array.
-Travis |
|
Date |
User |
Action |
Args |
2012-08-02 23:01:48 | teoliphant | set | recipients:
+ teoliphant, loewis, ncoghlan, pitrou, vstinner, Arfrever, alex, skrah, dmalcolm |
2012-08-02 23:01:47 | teoliphant | link | issue15540 messages |
2012-08-02 23:01:46 | teoliphant | create | |
|