Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Skip repeated directories inPATH when searching for Python interpreters#12367

Draft
zanieb wants to merge1 commit intomain
base:main
Choose a base branch
Loading
fromzb/python-seen

Conversation

zanieb
Copy link
Member

@zaniebzanieb commentedMar 21, 2025
edited
Loading

Closes#12302

@zaniebzanieb added the enhancementNew feature or improvement to existing functionality labelMar 21, 2025
which::which_in_global("python.bat", Some(&dir_clone))
// If we cannot determine if the directory is unique, we'll assume it is
.unwrap_or(true)
.then(|| {
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@@ -1,6 +1,7 @@
use itertools::{Either, Itertools};
use regex::Regex;
use same_file::is_same_file;
use std::collections::HashSet;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Let's default toFxHashSet.

@charliermarsh
Copy link
Member

Should this be implemented by de-duping theinterpreters rather than the parent directories? I assume not, but it'd be good to note why.

zanieb added a commit that referenced this pull requestMar 23, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@charliermarshcharliermarshcharliermarsh approved these changes

Assignees
No one assigned
Labels
enhancementNew feature or improvement to existing functionality
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

python list: don't list system interpreters twice when directories are symlinked
2 participants
@zanieb@charliermarsh

[8]ページ先頭

©2009-2025 Movatter.jp