Serhiy Storchaka added the comment: It would be good to add examples with multidimensional memoryviews. For example:
>>> a = array.array('l', [-11111111, 22222222, -33333333, 44444444]) >>> m = memoryview(a).cast('B').cast('l', [2, 2]) >>> m[0, 0] -11111111 >>> m[1, 0] -33333333 >>> m[-1, -1] 44444444 ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23632> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com