simple array question

Daniel Schüle uval at rz.uni-karlsruhe.de
Thu Nov 17 22:37:11 EST 2005


purna chandra wrote:
> Hello,
>    I have a simple question.Hoping not to take much of
> your valuable time...:-).  I am trying to get the data
> from a string, and am wondering if I get 
> http://groups.google.com/intl/en/googlegroups/tour/index.html
> from the array :
> array('c',
> '\x00=http://groups.google.com/intl/en/googlegroups/tour/index.html'))
> 
> Thanks in advance,
> 
> regards,
> purna. 
> 

i am not sure i understand your question right
if not just ignore

import array
x = array.array("c", "test")
s = x.tostring()
s	# => "test"


hth, Daniel




More information about the Python-list mailing list