newbie question

2005-02-09 Thread doodle4
Hello All, What is the python equivalent of the following statement? while (n--) Thank you. -d4 -- http://mail.python.org/mailman/listinfo/python-list

Re: newbie question

2005-02-09 Thread doodle4
Thanks for the reply. I am trying to convert some C code to python and i was not sure what the equivalent python code would be. I want to postdecrement the value in the while loop. Since i cannot use assignment in while statements is there any other way to do it in python? Thanks. -d4 -- http:

Multidimensional arrays - howto?

2005-02-14 Thread doodle4
Hello all, I am trying to convert some C code into python. Since i am new to python, i would like to know how to deal with multidimensional arrays? Thanks, -Joe Here's a snippet of what i am trying to convert: # define table0 15 # define table1 20 unsigned int Table[table0][table1] if(Table[t

newbie question convert C to python

2005-02-14 Thread doodle4
How do i handle this piece of code in python: # define vZero 15 # define vOne 20 unsigned int vTable[Zero][One] if(vGroup[vZero][vOne] == 0) { vGroup[vZero][vOne]-- . . } Thanks, -d4 -- http://mail.python.org/mailman/listinfo/python-list

Re: char buffer

2005-03-10 Thread doodle4
Each buffer need to hold 512 bytes of data. Thanks, -Joe -- http://mail.python.org/mailman/listinfo/python-list

char buffer

2005-03-10 Thread doodle4
Hello all, I need to create 6 buffers in python and keep track of it. I need to pass this buffer, say buffer 1 as an index to a test app. Has any one tried to do this. Any help with buffer management appreciated. Thanks, -Joe -- http://mail.python.org/mailman/listinfo/python-list

multiple buffers management

2005-03-10 Thread doodle4
Hello, I need to create 6 buffers in python and keep track of it. I need to pass this buffer, say buffer 1 as an index to a test app. Has any one tried to do this. Any help with buffer management appreciated. Each buffer needs to hold 512 bytes of data. Thanks, -Joe -- http://mail.python.org