Stefan Krah added the comment:

There is still one corner case involving NaNs: Released memoryviews always
compare equal. I took that over from the 3.2 implementation.

>>> import array
>>> a = array.array('d', [float('nan')])
>>> m = memoryview(a)
>>> m == m
False
>>> m.release()
>>> m == m
True


I guess we have to live with that, since it is of course impossible to access
the values of a released view.

----------

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

Reply via email to