Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

And of course the native Python solution is memoryview. If you need to inter-operate with libraries like numpy but you cannot import numpy, use memoryview. It is specifically for fast low-level access which is why it has more C documentation than Python documentation: https://docs.python.org/3/c-api/memoryview.html


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: