STINNER Victor added the comment: > What is the specific regression from 3.2 that this deals with?
I don't know if it must be called a regression, but at least the behaviour is
different in Python 3.2 and 3.3. For example, an Unicode array is no more equal
to its memoryview:
Python 3.3.0b1 (default:aaa68dce117e, Aug 9 2012, 22:45:00)
[GCC 4.6.3 20120306 (Red Hat 4.6.3-2)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import array
>>>
>>>
>>> a=array.array('u', 'abc')
>>> v=memoryview(a)
>>>
>>>
>>> a == v
>>>
>>>
False
ned$ python3
Python 3.2.3 (default, Jun 8 2012, 05:40:07)
[GCC 4.6.3 20120306 (Red Hat 4.6.3-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import array
>>>
>>>
>>> a=array.array('u', 'abc')
>>> v=memoryview(a)
>>>
>>>
>>> a == v
>>>
>>>
True
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue15573>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
