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 mesheb82, paul.moore, serhiy.storchaka, steve.dower, tim.golden, zach.ware
Date 2017-02-23.05:59:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1487829593.97.0.806389165541.issue29628@psf.upfronthosting.co.za>
In-reply-to
Content
As a workaround you can make Struct pickleable:

from struct import Struct
import copy, copyreg
def pickle_struct(s):
    return Struct, (s.format,)

copyreg.pickle(Struct, pickle_struct)

s1 = Struct('<i')
s2 = copy.deepcopy(s1)
History
Date User Action Args
2017-02-23 05:59:54serhiy.storchakasetrecipients: + serhiy.storchaka, paul.moore, tim.golden, zach.ware, mesheb82, steve.dower
2017-02-23 05:59:53serhiy.storchakasetmessageid: <1487829593.97.0.806389165541.issue29628@psf.upfronthosting.co.za>
2017-02-23 05:59:53serhiy.storchakalinkissue29628 messages
2017-02-23 05:59:53serhiy.storchakacreate