newbie help doodle4 at
Thu Mar 24 22:41:55 CET 2005

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?

More information about the Python-list mailing list