converting an array of chars to a string

JB jblazi at hotmail.com
Mon Jun 24 07:40:51 EDT 2002


Bengt Richter wrote:

> Have a look at the array module. It can construct an array
> of signed or unsigned character elements optionally
> initialized with values from a list or string. 
[...]

Thank you very much. In principle, this was exactly, for 
what I was looking. But most unforunately if I declare such 
an array a, then

a[0]=210
a[0] += 46

produces an error instead of the correct result 0. Now I am 
a bit desperate.

This is like many things in the Python library: they look 
good at first sight but when you take a closer look at 
them, you see, that...

Thank you anyway!

-- 
Janos Blazi


-----------== Posted via Newsfeed.Com - Uncensored Usenet News ==----------
   http://www.newsfeed.com       The #1 Newsgroup Service in the World!
-----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers =-----



More information about the Python-list mailing list