maniram maniram <maniandra...@gmail.com> added the comment:

The problem is that pickle is calling array.array(u'i',[1,2,3]) and array.array 
in Python 2 doesn't allow unicode strings as a typecode (typecode is the first 
argument)

The docs in Python 2 and Py3k doesn't specify the type of the typecode argument 
of array.array.
In Python 2 it seems that typecode has to be a bytes string.
In Python 3 it seems that typecode has to be a unicode string.

I suggest that array.array be changed in Python 2 to allow unicode strings as a 
typecode or that pickle detects array.array being called and fixes the call.

----------
nosy: +maniram.maniram

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13566>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to