Christian Heimes <li...@cheimes.de> added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue43438>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to