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 vstinner
Recipients gregory.p.smith, izbyshev, jbms, vstinner
Date 2021-09-24.11:35:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1632483339.79.0.65415526704.issue42969@roundup.psfhosted.org>
In-reply-to
Content
Jeremy Maitin-Shepard: "In general, I view hanging threads as the least bad thing to do when faced with either acquiring the GIL or not returning at all.  There is a lot of existing usage of Python that currently poses a risk of random crashes and memory corruption while Python is exiting, and I would like to fix that."

Showing warnings by default or not was discussed many times in Python. It was decided to *hide* DeprecationWarning by default. The PEP 565 is a minor trade-off to show them in the __main__ module.

For me, more generally, Python default behavior is designed for *users* who don't want to be annoyed by warnings or anything which would make sense for *developers*. That's why I designed a new "Python Development Mode" (-X dev):
https://docs.python.org/dev/library/devmode.html

Maybe in development mode, the behavior could be changed to call abort(). But honestly, I'm not really excited by that. I'm not embedding Python in a C++ application. I'm almot only use Python directly: the Unix command "python3". For this use case, IMO it's fine to call pthread_exit() by default.
History
Date User Action Args
2021-09-24 11:35:39vstinnersetrecipients: + vstinner, gregory.p.smith, izbyshev, jbms
2021-09-24 11:35:39vstinnersetmessageid: <1632483339.79.0.65415526704.issue42969@roundup.psfhosted.org>
2021-09-24 11:35:39vstinnerlinkissue42969 messages
2021-09-24 11:35:39vstinnercreate