You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Python implementation of pickle calls persistent_id() for a persistent id #126489
Pickle allows to define the persistent_id() method in the Pickler class. If it is defined, it is called for every pickled object, and its result will be pickled instead if it is not None. In the Python implementation persistent_id() is also called for the result of persistent_id(), but the result of the second call is ignored. The C implementation only calls persistent_id() once. Calling it twice is just a waste of time in best case, and can have other negative impact (for example if reference for every object for which it was called is stored), so I consider it a bug.
Activity
pythongh-126489: Do not call persistent_id() for a persistent id in P…
gh-126489: Do not call persistent_id() for a persistent id in Python …
pythongh-126489: Do not call persistent_id() for a persistent id in P…
[3.12] pythongh-126489: Do not call persistent_id() for a persistent …
[3.13] gh-126489: Do not call persistent_id() for a persistent id in …
[3.12] gh-126489: Do not call persistent_id() for a persistent id in …
pythongh-126489: Do not call persistent_id() for a persistent id in P…
pythongh-126489: Do not call persistent_id() for a persistent id in P…