You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# normcase on posix is NOP. Optimize it away from the loop.
This is not the case. os.path.normcase actually calls os.fspath on POSIX, meaning that path-like objects are allowed. Thus, we cannot optimize it away from the loop. I'll update #123122 accordingly.
In
fnmatch.filter
, it says that# normcase on posix is NOP. Optimize it away from the loop.
This is not the case.
os.path.normcase
actually callsos.fspath
on POSIX, meaning that path-like objects are allowed. Thus, we cannot optimize it away from the loop. I'll update #123122 accordingly.Related: #123122 (comment)
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
fnmatch.filter
on POSIX platforms #123122The text was updated successfully, but these errors were encountered: