You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python 3.6.5 (default, May 11 2018, 04:00:52)
[GCC 8.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import copy
>>> import my_class.MyClass as C
>>> c = C()
>>> c2 = copy.deepcopy(c)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.6/copy.py", line 169, in deepcopy
rv = reductor(4)
TypeError: can't pickle my_class._my_class.MyClass objects
If there is any better practice please tell me.
Thank you.
The text was updated successfully, but these errors were encountered:
🐛 Bug Reports
The instance made by class written in pyo3 cannot be deep copied.
🌍 Environment
💥 Reproducing
It will got following error message.
The instance can not use copy.deepcopy.
If there is any better practice please tell me.
Thank you.
The text was updated successfully, but these errors were encountered: