[Tutor] Write array to Status text

Stanfield, Vicki {D167~Indianapolis} VICKI.STANFIELD at roche.com
Wed Nov 19 11:02:00 EST 2003

Nice. I will try that when I hit another lull moment. Thanks.


-----Original Message-----
From: Alan Gauld [mailto:alan.gauld at blueyonder.co.uk] 
Sent: Wednesday, November 19, 2003 11:00 AM
To: Stanfield, Vicki {D167~Indianapolis}; tutor at python.org
Cc: Tutor
Subject: Re: [Tutor] Write array to Status text

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