[issue38149] sys.audit() is called multiple times for glob.glob()
Serhiy Storchaka
report at bugs.python.org
Fri Sep 13 08:11:00 EDT 2019
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
It is harder to avoid repeating calls in os.walk(), because it is recursive itself. But you can introduce a recursive helper _walk() and make os.walk() just calling sys.audit() and _walk().
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38149>
_______________________________________
More information about the Python-bugs-list
mailing list