Here it is again. I did something like this. index is passed from the command line.
def __getBuffer( index):
if index == 1:
buf1 = [None] * 512
print "Buffer: %s" % (buf1)
return buf1
elif index == 2:
buf2 = [None] * 512
print "Buffer: %s" % (buf2)
return buf2
Is this the best way to do this?
Thanks,
-Joe
--
http://mail.python.org/mailman/listinfo/python-list
