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 pschaafsma
Recipients pschaafsma
Date 2012-10-14.14:30:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1350225017.39.0.976217955919.issue16231@psf.upfronthosting.co.za>
In-reply-to
Content
The documentation of persistent_id prescribes that returning None will cause default pickling behavior. This makes sense.

However, in the Pickler.save function in pickle.py, the return value of persistent_id checked as boolean, causing also return values like 0 and [] to indicate default pickling.

This becomes a problem when unpickleable objects are identified by a simple index in some other list.
History
Date User Action Args
2012-10-14 14:30:17pschaafsmasetrecipients: + pschaafsma
2012-10-14 14:30:17pschaafsmasetmessageid: <1350225017.39.0.976217955919.issue16231@psf.upfronthosting.co.za>
2012-10-14 14:30:17pschaafsmalinkissue16231 messages
2012-10-14 14:30:17pschaafsmacreate