| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Sorry, something went wrong.
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead. |
Sorry, something went wrong.
|
I'm not sure if I should also commit the autogenerated topics.py |
Sorry, something went wrong.
|
This test case fails not due to unsorted keywords, but because match and case are not present in keyword.kwlist. Instead, they are listed in keyword.softkwlist, along with entries like type and _. class TestHelper(unittest.TestCase):
def test_keywords(self):
self.assertEqual(sorted(pydoc.Helper.keywords),
sorted(keyword.kwlist))I suggest splitting this into two separate cases: class TestHelper(unittest.TestCase):
def test_keywords_are_sorted(self):
self.assertEqual(
sorted(pydoc.Helper.keywords),
list(pydoc.Helper.keywords),
)
def test_keywords_in_grammar(self):
all_keywords = set(keyword.kwlist) | set(keyword.softkwlist)
for kw in pydoc.Helper.keywords:
self.assertIn(kw, all_keywords) |
Sorry, something went wrong.
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead. |
Sorry, something went wrong.
There was a problem hiding this comment.
I checked out this PR and tried:
I think that you need to regen pydoc-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
Sorry, something went wrong.
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead. |
Sorry, something went wrong.
# Conflicts: # Lib/pydoc_data/topics.py
|
@sobolevn could you please look at the last changes? Is everything ok? |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM, but I can't merge this PR. Since I am not an expert in pydoc and I need someone who knows how it actually works to verify :)
Sorry, something went wrong.
There was a problem hiding this comment.
There are conflicts that need to be fixed.
Sorry, something went wrong.
There was a problem hiding this comment.
Please revert changes to this file, they will be automatically done before a release.
Sorry, something went wrong.
There was a problem hiding this comment.
Please move to "Library"
Sorry, something went wrong.
|
This PR is stale because it has been open for 30 days with no activity. |
Sorry, something went wrong.
|
Closing, changes haven't been made. |
Sorry, something went wrong.
|
I will take this over and credit @dzherb for their work :) |
Sorry, something went wrong.
Originally published in python#132784 Co-authored-by: dzherb <zherbin.dima@yandex.ru>
| Back | FazBrowse Home | New Git URL |
📚 Documentation preview 📚: https://cpython-previews--132784.org.readthedocs.build/