This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vajrasky
Recipients alexandre.vassalotti, vajrasky
Date 2013-12-18.09:49:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
>>> import array
>>> array.array(u'i', [1,2,3])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: must be char, not unicode

In this ticket #13566, Alexandre Vassalotti said:
"We should still fix array in 2.7 to accept unicode object for the typecode though."

So here is the patch to add support for ascii-unicode typecode for array.array constructor.
Date User Action Args
2013-12-18 09:49:56vajraskysetrecipients: + vajrasky, alexandre.vassalotti
2013-12-18 09:49:55vajraskysetmessageid: <>
2013-12-18 09:49:55vajraskylinkissue20014 messages
2013-12-18 09:49:55vajraskycreate