On Mon, Dec 21, 2020, 3:03 PM Vincent Vande Vyvre < vincent.vande.vy...@telenet.be> wrote:
> Hi, > > I've an object that I want to serialise with pickle. > When I reload the object the attributes of this object are correctly > fixed except one of these. > > This attribute (value) define a simple string. > > Example: > --------------------------------------------- > tag = XmpTag('Xmp.dc.form'image/jpeg') I am not familiar with XmpTag. Where might I get the containing module? tag.key > 'Xmp.dc.format' > tag.type > 'MIMEType' > tag.value > 'image/jpeg' > > s = pickle.dumps(tag) > t = pickle.loads(s) > t.key > 'Xmp.dc.format' # Correct > t.type > 'MIMEType' # Correct > t.value > ('image', 'jpeg') # Not correct > --------------------------------------------- > > Tested with Python-3.8 > > An idea ? > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailman/listinfo/python-list