12

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).

Matt Joiner
  • 112,946
  • 110
  • 377
  • 526

4 Answers4

6

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

Martin Törnwall
  • 9,299
  • 2
  • 28
  • 35
4

Google finds sysv_ipc.

Ignacio Vazquez-Abrams
  • 776,304
  • 153
  • 1,341
  • 1,358
4

This page offers a feature matrix to help you choose between the posix_ipc, sysv_ipc, and shm modules.

Jonathan Feinberg
  • 44,698
  • 7
  • 80
  • 103
2

The processing package also supports shared memory objects, and works on unix/mac/windows.

Nik Reiman
  • 39,067
  • 29
  • 104
  • 160