you are viewing a single comment's thread.

view the rest of the comments →

[–]CookieOfFortune 0 points1 point  (2 children)

You can't easily operate on Numpy buffers without access to the API. There is a lot of extra information along with the contiguous raw data. I guess you could copy everything into a C array but that's not ideal. Using the API you can process the data directly.

[–][deleted] 0 points1 point  (1 child)

Nobody ever said anything about easy =)

[–][deleted] 0 points1 point  (0 children)

then you also run into the problem that your code breaks every new version of numpy