Hi

I have this part of code and am unsure as to the effect of the array('c') part.


Is it creating an array and adding 'c' as its first value?


This does not seem to be the case.


Thanks


n = len(cmd)
       a = array('c')
       a.append(chr((n>> 24) & 0xFF))
       a.append(chr((n>> 16) & 0xFF))
       a.append(chr((n>>  8) & 0xFF))
       a.append(chr(n & 0xFF))
       scratchSock.send(a.tostring() + cmd)                                     
  
_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to