This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients alexandre.vassalotti, barry, dangyogi, serhiy.storchaka
Date 2017-03-25.14:02:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1490450549.16.0.0724736043875.issue29902@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2017-03-25 14:02:29serhiy.storchakasetrecipients: + serhiy.storchaka, barry, alexandre.vassalotti, dangyogi
2017-03-25 14:02:29serhiy.storchakasetmessageid: <1490450549.16.0.0724736043875.issue29902@psf.upfronthosting.co.za>
2017-03-25 14:02:29serhiy.storchakalinkissue29902 messages
2017-03-25 14:02:28serhiy.storchakacreate