[Tutor] Write array to Status text

Alan Gauld alan.gauld at blueyonder.co.uk
Wed Nov 19 11:00:03 EST 2003

Unless there is more going on that you haven't shown...

returnedval= ord(output)  
if count == 1:
         errorarray[byte]=returnedval # store the ASCII value
         byte = byte +1

StatusText += "%x%x%x%x" % tuple(errorarray)

Should achieve the same with fewer conversions.

Alan G.

More information about the Tutor mailing list