4 ms·
>In NumPy, one of the most important libraries in Python 2 or 3, strings always take one byte per character. So I won't be able to use NumPy with either of my
by vurpo 10y ago
>In NumPy, one of the most important libraries in Python 2 or 3, strings always take one byte per character.
So I won't be able to use NumPy with either of my two native languages. That sounds like a bit of a shortcoming for the majority of the world.
- aidos 10y agoNumpy isn't really used like that though. It's for numerical computation. There might be cases for putting text in there but you can always keep it locally and map it to an int that you use in numpy for mapping (I do that in places).