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

gh-105895: Addmatch andcase tohelp topics#132784

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
dzherb wants to merge9 commits intopython:main
base:main
Choose a base branch
Loading
fromdzherb:gh-132783-match-help

Conversation

dzherb
Copy link

@dzherbdzherb commentedApr 21, 2025
edited
Loading

@python-cla-bot
Copy link

python-cla-botbot commentedApr 21, 2025
edited
Loading

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-app
Copy link

Most changes to Pythonrequire a NEWS entry. Add one using theblurb_it web app or theblurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply theskip news label instead.

@dzherb
Copy link
Author

I'm not sure if I should also commit the autogeneratedtopics.py

@dzherb
Copy link
Author

dzherb commentedApr 21, 2025
edited
Loading

This test case fails not due to unsorted keywords, but becausematch andcase are not present inkeyword.kwlist. Instead, they are listed inkeyword.softkwlist, along with entries liketype and_.

classTestHelper(unittest.TestCase):deftest_keywords(self):self.assertEqual(sorted(pydoc.Helper.keywords),sorted(keyword.kwlist))

I suggest splitting this into two separate cases:

classTestHelper(unittest.TestCase):deftest_keywords_are_sorted(self):self.assertEqual(sorted(pydoc.Helper.keywords),list(pydoc.Helper.keywords),        )deftest_keywords_in_grammar(self):all_keywords=set(keyword.kwlist)|set(keyword.softkwlist)forkwinpydoc.Helper.keywords:self.assertIn(kw,all_keywords)

@bedevere-app
Copy link

Most changes to Pythonrequire a NEWS entry. Add one using theblurb_it web app or theblurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply theskip news label instead.

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.

I checked out this PR and tried:

Снимок экрана 2025-05-06 в 15 21 31

I think that you need to regenpydoc-topics with:make -C Doc pydoc-topics

It might take a while.

Also, add a NEWS entry (see#132784 (comment) about how to do that) and change the issue number :) I will update you PR title for you to match the original issue#132783

dzherb reacted with thumbs up emoji
@sobolevnsobolevn changed the titlegh-132783: Addmatch andcase tohelp topicsgh-105895: Addmatch andcase tohelp topicsMay 6, 2025
@bedevere-app
Copy link

Most changes to Pythonrequire a NEWS entry. Add one using theblurb_it web app or theblurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply theskip news label instead.

@dzherbdzherb requested a review fromsobolevnMay 7, 2025 11:57
@dzherb
Copy link
Author

@sobolevn could you please look at the last changes? Is everything ok?

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.

LGTM, but I can't merge this PR. Since I am not an expert inpydoc and I need someone who knows how it actually works to verify :)

dzherb reacted with thumbs up emoji
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@sobolevnsobolevnsobolevn left review comments

@AA-TurnerAA-TurnerAwaiting requested review from AA-TurnerAA-Turner is a code owner

@hugovkhugovkAwaiting requested review from hugovkhugovk is a code owner

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@dzherb@sobolevn

[8]ページ先頭

©2009-2025 Movatter.jp