Skip to content

docs: fix deprecated or broken examples in urllib.request documentation. #130374

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Mr-Sunglasses opened this issue Feb 20, 2025 · 4 comments
Closed
Labels
docs Documentation in the Doc dir

Comments

@Mr-Sunglasses
Copy link
Contributor

Mr-Sunglasses commented Feb 20, 2025

Documentation

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:

@Mr-Sunglasses Mr-Sunglasses added the docs Documentation in the Doc dir label Feb 20, 2025
@StanFromIreland
Copy link
Contributor

Did you not just open the same issue two days ago? #130283

@Mr-Sunglasses
Copy link
Contributor Author

Did you not just open the same issue two days ago? #130283

There is a difference in this on and #130283 , I only covered a single example there which are these one:

Image

But after digging into other examples, many of them are not working do, I decided to open this issue.

btw thanks @StanFromIreland , I will make #130283 more precise so that I does not create any confusion.

@StanFromIreland
Copy link
Contributor

One issue is fine for all examples on one page. Please choose one.

@Mr-Sunglasses
Copy link
Contributor Author

One issue is fine for all examples on one page. Please choose one.

Thanks, closing this in favor of #130283

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
Status: Todo
Development

No branches or pull requests

2 participants