[docs] Query re array 'u' type code

Andrew Svetlov andrew.svetlov at gmail.com
Mon Oct 8 15:26:20 CEST 2012


You shouldn't store characters in array because char is not 'physical
matter' but some abstract one without specified byte representation.
You should to store string encoded by some codec instead — it makes
things easier and well-defined.

On Mon, Oct 8, 2012 at 4:13 PM, Mark Summerfield <list at qtrac.plus.com> wrote:
> Hi,
>
> According to
> http://docs.python.org/py3k/library/array.html#module-array
>
> The 'u' type code is deprecated and will be dropped in Python 4.
>
> However, no information is provided on what one should use instead when
> one wants to store an array of individual characters. I think that such
> information would be helpful.
>
> --
> Mark Summerfield, Qtrac Ltd, www.qtrac.eu
>     C++, Python, Qt, PyQt - training and consultancy
>         "Advanced Qt Programming" - ISBN 0321635906
>             http://www.qtrac.eu/aqpbook.html
> _______________________________________________
> docs mailing list
> docs at python.org
> http://mail.python.org/mailman/listinfo/docs



-- 
Thanks,
Andrew Svetlov


More information about the docs mailing list