[issue9240] different behaviour with for loop... interpreted vs scripted

2010-07-12 Thread Diego Jacobi
New submission from Diego Jacobi : Hi. I am not a python expert and i was trying to reduce this next code: data = [] i = 0 for j in range(packetlen+1): print i, self.channels_in[ channels[i] ] data.append( self.channels_in[ channels[i] ].pop

[issue9218] pop multiple elements of a list at once

2010-07-10 Thread Diego Jacobi
New submission from Diego Jacobi : I am currently working with buffer in an USB device and pyusb. So when i read from a buffer endpoint i get an array.Array() list. I handle this chunk of data with a thread to send a receive the information that i need. In this thread i load a list with all the