Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

deepcopy memoryview raises TypeError #95081

Open
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error
@stuaxo

Description

@stuaxo

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

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp