python array.array with strings as data type
<p>Is there an object that acts like array.array, yet can handle strings (or character arrays) as its data type?</p>

<p>It should be able to convert the string array to binary and back again, preferably with null terminated strings, however fixed length strings would be acceptable.</p>

<pre><code>&gt;&gt;&gt; my_array = stringarray(['foo', 'bar'])
&gt;&gt;&gt; my_array.tostring()
'foo\0bar\0'
&gt;&gt;&gt; re_read = stringarray('foo\0bar\0')
&gt;&gt;&gt; re_read[:]
['foo', 'bar']
</code></pre>

<p>I will be using it with arrays that contain a couple million strings.</p>
