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.

classification
Title: Module uuid: reduce pickle footprint
Type: Stage:
Components: Extension Modules Versions: Python 2.5
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: ping Nosy List: gvanrossum, klaas, mamrhein, ping
Priority: normal Keywords: patch

Created on 2006-07-03 13:22 by mamrhein, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg50589 - (view) Author: Michael Amrhein (mamrhein) Date: 2006-07-03 13:22
In order to reduce the pickle footprint of UUIDs I
would add a __reduce__ method to class UUID like

    def __reduce__(self):
        return (uuid, (self.int,))

together with a helper function (at module level) like

def uuid(i):
    return UUID(int=i)
msg56999 - (view) Author: Mike Klaas (klaas) Date: 2007-10-31 19:42
Is the footprint of UUID an issue?

Note that changing the pickle format of UUID will require code that can 
unpickle both versions, for compatibility.  I don't really see the need.

Also, no real patch provided.
msg57018 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2007-11-01 17:41
No clear problem, no patch.
History
Date User Action Args
2022-04-11 14:56:18adminsetgithub: 43603
2007-11-01 17:41:42gvanrossumsetstatus: open -> closed
resolution: wont fix
messages: + msg57018
nosy: + gvanrossum
2007-10-31 19:42:24klaassetnosy: + klaas
messages: + msg56999
2006-07-03 13:22:42mamrheincreate