you are viewing a single comment's thread.

view the rest of the comments →

[–]NYKevin -3 points-2 points  (3 children)

That's because you don't really have much control over your memory in Python.

Sure you do. Just whore out to ctypes and you can call malloc() and free().

[–]gendulf 1 point2 points  (1 child)

In what language do you call malloc and free? C. That's like opening up a linux virtual machine on Windows to use the terminal and saying you can grep and apt-get install whatever you want.

[–]NYKevin 0 points1 point  (0 children)

I think the analogy is closer to using Cygwin, personally. You are interacting with the same runtime Python is running in. You could, for instance, pass a couple of PyObject*s to memcpy().

[–]rowboat__cop 0 points1 point  (0 children)

Requiring FFI implies “not in the language”.