GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||
GeezerVison is showing github.com — gh-109590 - Update shutil.which on win32 to only give back PATHEXT matches by default by csm10495 · Pull Request #109995 · python/cpython Conversation
|
|
Updated with suggestions. I think we're ready for a merge. Thanks! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
grr.. accidental pull.. sorry to the folks who got added by mistake. Fixed it but it still added y'all. @zooba i went back to |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
fd3a830 to
d93e51f
Compare
|
I wonder if we ought to keep the extensionless file at the end? That should help preserve people who really do want the extensionless file returned, and are currently succeeding (even in older versions I believe) if there's no executable there. So our language becomes "shutil.which prefers files with a PATHEXT extension when an executable path is requested" (I'll rewrite the commit message on merge, don't worry about trying to do it, but wanted to let you know what it'll be) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@zooba I gave it a try. Let me know what ya think. Thanks again. Feel free to squash, rewrite the message, etc. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Looks great! More updates than I thought, I'm glad I clarified the language for you 😄 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…xtension on executable files (pythonGH-109995) The default arguments for shutil.which() request an executable file, but extensionless files are not executable on Windows and should be ignored. (cherry picked from commit 29b875b) Co-authored-by: Charles Machalow <[email protected]>
|
GH-110202 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…extension on executable files (GH-109995) (#110202) gh-109590: Update shutil.which on Windows to prefer a PATHEXT extension on executable files (GH-109995) The default arguments for shutil.which() request an executable file, but extensionless files are not executable on Windows and should be ignored. (cherry picked from commit 29b875b) Co-authored-by: Charles Machalow <[email protected]>
…xtension on executable files (pythonGH-109995) The default arguments for shutil.which() request an executable file, but extensionless files are not executable on Windows and should be ignored.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.