System V shared memory in Python?

Matt Joiner picture Matt Joiner · Feb 8, 2010 · Viewed 11.8k times · Source

How can I make use of the shmat(), shmdt(), shmctl(), shmget() calls from Python? Are they hidden somewhere in the standard library?

Update0

I'm after System V bindings that can be found in the Ubuntu repositories, or Python standard libraries (now or in future releases).

Answer

Martin Törnwall picture Martin Törnwall · Sep 28, 2010

If you don't want to use any non-standard Python libraries, perhaps you could wrap the functions you need yourself using ctypes?