-
-
Notifications
You must be signed in to change notification settings - Fork 30.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deepcopy memoryview raises TypeError #95081
Comments
This issue looks like related to https://bugs.python.org/issue22995 and it was intended not to support deepcopy/copy. |
@serhiy-storchaka Is there any reason to prohibit
|
There are no reasons to prohibit shallow and deep copying of By default, shallow and deep copying use the same mechanism as pickling. If pickling works, copying works automatically, if pickling is impossible, copying does not work by default. But if it is possible to make a copy, it can be implemented explicitly using other mechanisms. |
I found the related patch from that issue, Can you please take a look at this comment? |
Okay Thank you for explain :) |
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
The text was updated successfully, but these errors were encountered: