Re: binary input and memory address passing

2006-12-13 Thread Eric Carlson
Thanks Dennis and Scott for both responses. Since Dennis has slam dunked my notion of sharing memory addresses (my ignorance in computing is pretty much unbounded), I guess I will need to continue on with sharing through files. Opening up and loading the binary info into a string variable is v

Re: binary input and memory address passing

2006-12-12 Thread Scott David Daniels
Eric Carlson wrote: > Hello, > > I can open, read, and convert data to a numeric (double) array from a > binary file using > > nc = #something given > nr = #something given > f_o=open('junk.bin','rb') > x=reshape(array('d',f_o.read()),(nr,nc)) > > Is there a way in python that gives better perf

binary input and memory address passing

2006-12-12 Thread Eric Carlson
Hello, I can open, read, and convert data to a numeric (double) array from a binary file using nc = #something given nr = #something given f_o=open('junk.bin','rb') x=reshape(array('d',f_o.read()),(nr,nc)) Is there a way in python that gives better performance? These commands take three to 4 t