[issue16231] pickle persistent_id return value

2012-10-15 Thread PSchaafsma
PSchaafsma added the comment: There are indeed many easy workarounds, and we definitely don't want to introduce any incompatibilities. I guess the best thing to do is just update the documentation, right? -- ___ Python tracker

[issue16231] pickle persistent_id return value

2012-10-14 Thread PSchaafsma
New submission from PSchaafsma: 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