[PYTHON MATRIX-SIG] Array -> String

Emmanuel Viennet emmanuel.viennet@ura1507.univ-paris13.fr
Wed, 7 May 1997 16:45:05 +0100 (WET DST)


Konrad Hinsen writes:
> Has anyone found an efficient method to convert a character array into
> a string? The only solution I could come up with is
> 
>   string = reduce(operator.add, array)
> 

 Can't you use the .tostring() method on array objects ?

-- 
Emmanuel Viennet: <viennet@ura1507.univ-paris13.fr>
LIPN - Institut Galilee - Universite Paris-Nord       
93430 Villetaneuse -  France

_______________
MATRIX-SIG  - SIG on Matrix Math for Python

send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
_______________