Array of characters in python 3?
<p>In <a href="https://docs.python.org/2.7/library/array.html" rel="nofollow noreferrer">Python 2.7</a> I can create an array of characters like so:</p>

<pre><code>#Python 2.7 - works as expected
from array import array
x = array('c', 'test')
</code></pre>

<p>But in <a href="https://docs.python.org/3.4/library/array.html" rel="nofollow noreferrer">Python 3</a> <code>'c'</code> is no longer an available typecode. If I want an array of characters, what should I do? The <code>'u'</code> type is being removed as well.</p>

<pre><code>#Python 3 - raises an error
from array import array
x = array('c', 'test')
</code></pre>

<blockquote>
  <p>TypeError: cannot use a str to initialize an array with typecode 'c'</p>
</blockquote>