[issue27098] Pickle of memoryview not raising error

2016-05-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This was fixed in issue22995. Please wait 3.5.2. -- nosy: +serhiy.storchaka resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue27098] Pickle of memoryview not raising error

2016-05-23 Thread Xiang Zhang
Xiang Zhang added the comment: I cannot reproduce this. Pickling memoryview objects works well on my OS. Python 3.5.1+ (default, Mar 30 2016, 22:46:26) [GCC 5.3.1 20160330] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import pickle >>> mv = memoryview(b'12

[issue27098] Pickle of memoryview not raising error

2016-05-23 Thread Memeplex
New submission from Memeplex: In [1]: mv = memoryview(b'123') In [2]: mv.__reduce__() TypeError: can't pickle memoryview objects But then: In [3]: pickle.dumps(mv) b'\x80\x03cbuiltins\nmemoryview\nq\x00)\x81q\x01.' Even worse: In [4]: pickle.loads(pickle.dumps(mv)) TypeError: Requ