Message290484
Copying and pickling of staticmethod objects are not supported. Starting from 3.6 this raises an exception (see issue22995).
>>> bar.y = copy(staticmethod(foo))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/serhiy/py/cpython3.6/Lib/copy.py", line 96, in copy
rv = reductor(4)
TypeError: can't pickle staticmethod objects |
|
Date |
User |
Action |
Args |
2017-03-25 14:02:29 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, barry, alexandre.vassalotti, dangyogi |
2017-03-25 14:02:29 | serhiy.storchaka | set | messageid: <1490450549.16.0.0724736043875.issue29902@psf.upfronthosting.co.za> |
2017-03-25 14:02:29 | serhiy.storchaka | link | issue29902 messages |
2017-03-25 14:02:28 | serhiy.storchaka | create | |
|