Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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
Appearance settings

bpo-46353: Fix "pydoc -k" when a module fails to load#30557

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

Open
dlax wants to merge1 commit intopython:main
base:main
Choose a base branch
Loading
fromdlax:issue46353

Conversation

dlax
Copy link
Contributor

@dlaxdlax commentedJan 12, 2022
edited by bedevere-bot
Loading

The 'spec' value, here coming from pkgutil._get_spec(), may be None
because .find_module() may return None. We account for this in
pydoc's ModuleScanner and skip such modules scan.

https://bugs.python.org/issue46353

The 'spec' value, here coming from pkgutil._get_spec(), may be Nonebecause <importer>.find_module() may return None. We account for this inpydoc's ModuleScanner and skip such modules scan.
Copy link
Member

@sobolevnsobolevn left a comment

Choose a reason for hiding this comment

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

Thank you! Is there any good way to test this?

@dlax
Copy link
ContributorAuthor

Is there any good way to test this?

That did not appear easy at first sight. That's typically something that a type checker would catch.
If a test is needed, I can have a second look though.

@github-actions
Copy link

This PR is stale because it has been open for 30 days with no activity.

@github-actionsgithub-actionsbot added the staleStale PR or inactive for long period of time. labelFeb 17, 2022
Copy link
Contributor

@MaxwellDupreMaxwellDupre left a comment

Choose a reason for hiding this comment

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

Could you add a test please?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@sobolevnsobolevnsobolevn left review comments

@MaxwellDupreMaxwellDupreMaxwellDupre requested changes

Assignees
No one assigned
Labels
awaiting core reviewstaleStale PR or inactive for long period of time.
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

6 participants
@dlax@sobolevn@MaxwellDupre@the-knights-who-say-ni@ezio-melotti@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp