This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Python 2.7 documentation links to 404 pages when the library was moved or renamed
Type: enhancement Stage: resolved
Components: Documentation Versions: Python 3.9
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: boris, docs@python, vstinner
Priority: normal Keywords:

Created on 2021-01-27 23:26 by boris, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 24195 closed boris, 2021-01-27 23:26
Messages (3)
msg385821 - (view) Author: Борис Верховский (boris) * Date: 2021-01-27 23:26
1. go to https://docs.python.org/2/library/stringio.html (note the "/2/")
2. click on "You should upgrade and read the Python documentation for the current stable release." at the top

I expect to be sent to the Python 3 documentation for StringIO (or at least the index.html page of the Python 3 documentaion) but because StringIO was moved from its own library into `io`, the Python 2 docs are linking to a 404 error page, because they just rewrite "/2/" to "/3/" in the URL.

See attached PR for a list of all these broken pages and where they could redirect to.
msg385822 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2021-01-27 23:30
The Python 2.7 branch has been removed: https://github.com/python/cpython/pull/24195#issuecomment-768474389

I close the issue. Please use the Python 3 documentation.
msg388405 - (view) Author: Борис Верховский (boris) * Date: 2021-03-10 03:18
This was fixed using redirects in nginx 

https://github.com/python/psf-salt/pull/201
History
Date User Action Args
2022-04-11 14:59:40adminsetgithub: 87210
2021-03-10 03:18:55borissetresolution: out of date -> fixed
messages: + msg388405
2021-01-27 23:30:33vstinnersetstatus: open -> closed

nosy: + vstinner
messages: + msg385822

resolution: out of date
stage: resolved
2021-01-27 23:26:36boriscreate