Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.4k
Open
Description
Bug report
Calling deepcopy on a memoryview raises a TypeError, this looks similar to bug 82474#82474
This also breaks BinaryField when using Django Polymorphic
jazzband/django-polymorphic#524
Your environment
- CPython versions tested on: 3.8, 3.10
- Operating system and architecture: Ubuntu 21.10
>>>a=memoryview(b'123')>>>fromcopyimportdeepcopy>>>deepcopy(a)Traceback (mostrecentcalllast):File"<stdin>",line1,in<module>File"/usr/lib/python3.10/copy.py",line161,indeepcopyrv=reductor(4)TypeError:cannotpickle'memoryview'object
Metadata
Metadata
Assignees
Labels
Projects
Status
No status