GeezerVison is showing github.com — documentation for `http.server` refers to wrong `test()` function · Issue #97822 · python/cpython
documentation for http.server refers to wrong test() function #97822DescriptionDocumentation
the following paragraph in docs for http.server mentions function test:
|
For example usage, see the implementation of the :func:`test` function |
|
invocation in the :mod:`http.server` module. |
which is a reference to function test in the same file:
|
def test(HandlerClass=BaseHTTPRequestHandler, |
but in the rendered docs :func:`test` is resolved as a link to https://docs.python.org/3/library/test.html#module-test instead of the aforementioned function in the same file. Activityorsenthil commented on Oct 4, 2022 Could open a pull request to fix this? yedpodtrzitko commented on Oct 4, 2022 sure, I just dont know what's the recommended way how to refer to a specific function in the code - do I use link with the latest commit or is it preferred some other way? davidism commented on Oct 4, 2022 List the full path to the name, it will be a link with the text http.server.test:
For example, see the implementation of the :func:`http.server.test` function.
Alternatively, add a ~ at the front, and it will remain in the current format, showing only the test name.
For example, see the implementation of the :func:`~http.server.test` function in the :mod:`http.server` module. added 2 commits that reference this issue on Oct 7, 2022gh-97822: Fix http.server documentation reference to test() function (#… added 4 commits that reference this issue on Oct 8, 2022pythongh-97822: Fix http.server documentation reference to test() fun… pythongh-97822: Fix http.server documentation reference to test() fun… gh-97822: Fix http.server documentation reference to test() function (G… gh-97822: Fix http.server documentation reference to test() function (G… hauntsaninja commented on Oct 9, 2022 Looks like this is fixed and all backports are merged. Thank you! added a commit that references this issue on Oct 22, 2022gh-97822: Fix http.server documentation reference to test() function (G…
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|