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 ncoghlan
Recipients ncoghlan, nedbat, pitrou, serhiy.storchaka
Date 2012-05-15.09:51:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Actually, there's another use case for you:

export PYTHONRUNFIRST="import faulthandler; faulthandler.enable()"

All subprocesses launched by the application will now have faulthandler enabled, *without* modifying the application. Doing this in a shell session means that faulthandler will be enabled for all Python processes you launch.

Obviously, care would need to be taken to ensure PYTHONRUNFIRST is ignored for setuid scripts (and it would respect -E as with any other environment variable).
Date User Action Args
2012-05-15 09:51:07ncoghlansetrecipients: + ncoghlan, pitrou, nedbat, serhiy.storchaka
2012-05-15 09:51:07ncoghlansetmessageid: <>
2012-05-15 09:51:07ncoghlanlinkissue14803 messages
2012-05-15 09:51:07ncoghlancreate