Documentation
While working on the issue #130132 , I encountered with some examples and I can see the W3C document is outdated with some examples of urllib.request.urlopen() in Example of urllib.request
These are following things I find which is outdated.
Also there are other which also need to be fixed:
ref. https://docs.python.org/3/library/urllib.request.html#examples
There are many example in urllib.request documentation that need to be updated as they no longer works as expected.
In the following example, we are sending a data-stream to the stdin of a CGI and reading the data it returns to us. Note that this example will only work when the Python installation supports SSL.
Use of Basic HTTP Authentication:
Linked PRs
Documentation
While working on the issue #130132 , I encountered with some examples and I can see the W3C document is outdated with some examples of
urllib.request.urlopen()in Example ofurllib.requestThese are following things I find which is outdated.
urllib.request.urlopen('http://www.python.org/')Also there are other which also need to be fixed:
ref. https://docs.python.org/3/library/urllib.request.html#examples
There are many example in
urllib.requestdocumentation that need to be updated as they no longer works as expected.Linked PRs
urllib.requestdocs #130284urllib.requestdocs (GH-130284) #131626urllib.requestdocs (GH-130284) #131627