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: Documentation links are forwarded to Python 2
Type: behavior Stage: resolved
Components: Documentation, Library (Lib) Versions: Python 3.4, Python 3.5, Python 2.7
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, georg.brandl, lemburg, levkivskyi, r.david.murray
Priority: normal Keywords:

Created on 2015-05-05 19:24 by levkivskyi, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (5)
msg242613 - (view) Author: Ivan Levkivskyi (levkivskyi) * (Python committer) Date: 2015-05-05 19:24
Links to Python library documentation such as:
http://docs.python.org/library/functions.html
http://docs.python.org/library/itertools.html
http://docs.python.org/library/functools.html
etc.
are automatically forwarded to the Python 2 versions, namely to:
https://docs.python.org/2/library/functions.html
https://docs.python.org/2/library/itertools.html
https://docs.python.org/2/library/functools.html

At the same time docs.python.org is forwarded to Python 3 version https://docs.python.org/3/

I believe that all the documentation links should be forwarded to the current version that is Python 3.
msg242614 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2015-05-05 19:27
I believe that this is intentional, so that old "deep" links do not break.  Georg can say for sure.
msg242615 - (view) Author: Marc-Andre Lemburg (lemburg) * (Python committer) Date: 2015-05-05 19:35
On 05.05.2015 21:24, levkivskyi wrote:
> 
> Links to Python library documentation such as:
> http://docs.python.org/library/functions.html
> http://docs.python.org/library/itertools.html
> http://docs.python.org/library/functools.html
> etc.
> are automatically forwarded to the Python 2 versions, namely to:
> https://docs.python.org/2/library/functions.html
> https://docs.python.org/2/library/itertools.html
> https://docs.python.org/2/library/functools.html
> 
> At the same time docs.python.org is forwarded to Python 3 version https://docs.python.org/3/
> 
> I believe that all the documentation links should be forwarded to the current version that is Python 3.

This is intentional. All new links to Python documentation
should include the version number. To keep existing old
links to the documentation working, they redirect to the
Python 2 version of the documentation.
msg242616 - (view) Author: Ivan Levkivskyi (levkivskyi) * (Python committer) Date: 2015-05-05 19:44
Is it possible to check whether the Python 3 version exists and redirect to it and if not (like for http://docs.python.org/library/fpformat.html) then redirect to Python 2 ?
msg242617 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2015-05-05 19:52
That would defeat the purpose.  Existing links are intending to point to python2, not python3.
History
Date User Action Args
2022-04-11 14:58:16adminsetgithub: 68316
2015-05-05 19:52:04r.david.murraysetstatus: open -> closed
resolution: not a bug
messages: + msg242617

stage: resolved
2015-05-05 19:44:10levkivskyisetmessages: + msg242616
2015-05-05 19:35:29lemburgsetnosy: + lemburg
messages: + msg242615
2015-05-05 19:27:37r.david.murraysetnosy: + georg.brandl, r.david.murray
messages: + msg242614
2015-05-05 19:24:44levkivskyicreate