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 christian.heimes
Recipients christian.heimes, docs@python, steve.dower, vstinner
Date 2021-03-08.21:30:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1615239046.36.0.944824330521.issue43438@roundup.psfhosted.org>
In-reply-to
Content
I agree with both of you.

The documention should explicitly state that the audit hooks are for auditing. They are not designed to sandbox Python. When used correctly, they can help to capture and analyze an event post-mortem.

The documentation of sys.addaudithook() should also mention that hooks may not trigger under some conditions, e.g. very late in the interpreter shutdown phase.
History
Date User Action Args
2021-03-08 21:30:46christian.heimessetrecipients: + christian.heimes, vstinner, docs@python, steve.dower
2021-03-08 21:30:46christian.heimessetmessageid: <1615239046.36.0.944824330521.issue43438@roundup.psfhosted.org>
2021-03-08 21:30:46christian.heimeslinkissue43438 messages
2021-03-08 21:30:46christian.heimescreate