Hello, Thanks to all for great responses. Here's what iam trying to do. I am writing a script to generate test patterns.
For this i am passing an index number, size and a opcode from the command line testit -i <index> -s <size> [-o <opcode>] When the user passes the index number(1 or 2), it maps to one of the buffers 1 or 2. Where: index is the number 1 or 2 which is mapped to a buffer in a function like: buf = getBuffer( index) Size is 512 opcode is one of the values which matches a pattern. Do i have to take care of freeing buffers or will python take care of it. Thanks, - Joe -- http://mail.python.org/mailman/listinfo/python-list