[issue30977] reduce uuid.UUID() memory footprint

Serhiy Storchaka report at bugs.python.org
Thu Sep 28 03:05:25 EDT 2017


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

This change breaks pickle.

You should preserve forward and backward pickle compatibility.

1. Pickle data produced by old Python versions should be unpickleable with a new implementation. Implement __setstate__ for satisfying this.

2. Pickle data produced by a new implementation should be unpickleable in old Python versions. There are many ways to satisfy this, you should choose the most efficient.

----------
components: +Library (Lib)
nosy: +serhiy.storchaka
type:  -> resource usage
versions: +Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue30977>
_______________________________________


More information about the Python-bugs-list mailing list