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 Wicken
Recipients Wicken, gvanrossum
Date 2021-01-16.13:38:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1610804320.7.0.316931484022.issue42935@roundup.psfhosted.org>
In-reply-to
Content
Out of curiosity, why is there not much we can do? I'm not familiar enough with Python's C code to appreciate the difficulty of making the builtins available at the point where the pickle save is run when exiting. The fact that this segfaults in the 3.8 version tested was rather concerning.

Shelve's implementation without the context manager was how we found the original bug; but it feels the way pickle handles this should be a lot safer.

Some clarification might help me craft a warning for the documentation if there is nothing that can be done in the code base.
History
Date User Action Args
2021-01-16 13:38:40Wickensetrecipients: + Wicken, gvanrossum
2021-01-16 13:38:40Wickensetmessageid: <1610804320.7.0.316931484022.issue42935@roundup.psfhosted.org>
2021-01-16 13:38:40Wickenlinkissue42935 messages
2021-01-16 13:38:40Wickencreate