[PYTHON MATRIX-SIG] [Q] Array->String conversion, how?
Guido van Rossum
guido@CNRI.Reston.Va.US
Thu, 23 May 1996 10:53:53 -0400
> > How about using a.toList() to produce
> > [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
> >
> > and then do a gsub to replace ", " with " ".
Or this:
"{%s}" % string.join(map(str, a))
--Guido van Rossum (home page: http://www.python.org/~guido/)
=================
MATRIX-SIG - SIG on Matrix Math for Python
send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
=================