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
if index == 2: buf2 = [None] * 512 print "Buffer: %s" % (buf1) return buf2 Is this the best way to do this? Thanks, -Joe -- http://mail.python.org/mailman/listinfo/python-list