This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author memeplex
Recipients memeplex
Date 2016-05-24.01:37:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1464053875.71.0.444720123134.issue27098@psf.upfronthosting.co.za>
In-reply-to
Content
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: Required argument 'object' (pos 1) not found

According to the module documentation: Attempts to pickle unpicklable objects will raise the PicklingError exception.
History
Date User Action Args
2016-05-24 01:37:55memeplexsetrecipients: + memeplex
2016-05-24 01:37:55memeplexsetmessageid: <1464053875.71.0.444720123134.issue27098@psf.upfronthosting.co.za>
2016-05-24 01:37:55memeplexlinkissue27098 messages
2016-05-24 01:37:54memeplexcreate