newbie help

ashtonn@gmail.com doodle4 at gmail.com
Thu Mar 24 16:41:55 EST 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?
Thanks,
-Joe




More information about the Python-list mailing list