Skip to content

SystemError invoking copy.deepcopy #94390

@clo-vis

Description

@clo-vis

Python 3.10.4 (tags/v3.10.4:9d38120, Mar 23 2022, 23:13:41) [MSC v.1929 64 bit (AMD64)] on win32

import datetime, copy, numpy
copy.deepcopy(numpy.empty_like([datetime.datetime.now()]))
TypeError: deepcopy() missing 1 required positional argument: 'x'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
...
  File "C:\Program Files\Python310\lib\copy.py", line 153, in deepcopy
    y = copier(memo)
SystemError: <built-in method __deepcopy__ of numpy.ndarray object at 0x000001C918C49EF0> returned a result with an exception set

(just reporting because the documentation says "You should report this to the author or maintainer of your Python interpreter.")

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions