[issue38149] sys.audit() is called multiple times for glob.glob()

Serhiy Storchaka report at bugs.python.org
Fri Sep 13 05:44:53 EDT 2019


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

Using recursion is rather an implementation detail, because splitpath() splits a path from the end (Path.glob() does it from other side). Also, it may be a tiny bit more efficient if the pattern contains a long literal prefix.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38149>
_______________________________________


More information about the Python-bugs-list mailing list