numbers to string

David Isaac aisaac0 at verizon.net
Wed Oct 25 09:15:36 EDT 2006


Robert Kern wrote:
 >>> from numpy import *
 >>> y = [116, 114, 121, 32, 116, 104, 105, 115]
 >>> a = array(y, dtype=uint8)
 >>> z = a.tostring()
 >>> z
'try this'



Very nice!  Thanks also to Paul and Travis!
Alan Isaac





More information about the Python-list mailing list