newbie help

ashtonn@gmail.com doodle4 at gmail.com
Thu Mar 24 16:36:04 EST 2005


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




More information about the Python-list mailing list