[IronPython] Convert Byte[] to string?

Gary Stephenson garys at ihug.com.au
Tue Aug 29 01:43:49 CEST 2006


What is the best way to convert a Byte[] to a string?

The best I've been able to come up with is 

    "".join( [chr(x) for x in bytearr] )

but I just know there are better ways than that - surely ..

thanks in advance,

gary





More information about the Ironpython-users mailing list