""" nFromAddress.py """ ##Numeric example, with address kludge import Numeric, numpy, ctypes, subprocess from time import clock, sleep """a = Numeric.zeros((4), Numeric.Int16) nAddress = int(repr(.__copy__).split()[-1][:-1], 16) tmp=(ctypes.c_long*1)(0) ctypes.memmove(tmp, nAddress+8, 4) nAddress = tmp[0] """ a = numpy.zeros(4, numpy.int16) nAddress = a.__array_interface__['data'][0] print nAddress pid = subprocess.Popen( [r'C:\python24\python.exe', ['nFromAddress2.py '+str(nAddress)] ]).pid while clock()<5: sleep(.1) if a[0]!=0: ## wait for a change... print a0[0]