[issue16354] Remember python version choice on docs.python.org

New submission from Wichert Akkerman: docs.python.org was recently change to redirect http://docs.python.org/ to http://docs.python.org/3/ , with an option to switch to documentation for a different version using both (why two ways?) a dropdown and links in the left column. Would it be possible to remember the selection and honour that in the docs.python.org redirect? That would remove the minor annoyance of always ending up at the Python 3 documentation and having to switch back to 2.7. ---------- assignee: docs@python components: Documentation messages: 174106 nosy: docs@python, wichert priority: normal severity: normal status: open title: Remember python version choice on docs.python.org _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue16354> _______________________________________

Georg Brandl added the comment: If you always want to end up on Python 2 docs, why don't you go to docs.python.org/2 in the first place? ---------- nosy: +georg.brandl _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue16354> _______________________________________

Chris Jerdonek added the comment: Or set a bookmark. :) ---------- nosy: +chris.jerdonek _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue16354> _______________________________________

Changes by Ezio Melotti <ezio.melotti@gmail.com>: ---------- nosy: +ezio.melotti type: -> enhancement _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue16354> _______________________________________

Changes by Georg Brandl <georg@python.org>: ---------- resolution: -> works for me status: open -> pending _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue16354> _______________________________________

Terry J. Reedy added the comment: It may be possible, but will not happen. A modern browser should displays your personal history options as you type. If I type 'docs' in Firefox, it gives me choices for the rest of the url, though there are a lot of obsolete entries to delete. Typing and selecting /2/ and /3/ enough will keep them at the top of the list. ---------- nosy: +terry.reedy status: pending -> open _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue16354> _______________________________________

Changes by Terry J. Reedy <tjreedy@udel.edu>: ---------- status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue16354> _______________________________________

Ezio Melotti added the comment: Maybe the OP wanted to get redirected when he reaches a doc page through e.g. Google or a direct link, rather than a bookmark/history/manually-entered URL. I usually get to the docs via Google, and either pick whatever version comes up, or edit the URL manually. That might get in the way when users open a link for a specific version and get redirected, so it's not a really good idea.
If I type 'docs' in Firefox, it gives me choices for the rest of the url
You could even set keywords like 'pydoc' and 'py2doc' without relying on the history, and optionally they could supporting a search term too.
That would remove the minor annoyance of always ending up at the Python 3 documentation and having to switch back to 2.7.
Or you could remove the annoyance by switching your code forward to Python 3 <wink>. ---------- stage: -> committed/rejected _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue16354> _______________________________________

Georg Brandl added the comment: If you always want to end up on Python 2 docs, why don't you go to docs.python.org/2 in the first place? ---------- nosy: +georg.brandl _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue16354> _______________________________________

Chris Jerdonek added the comment: Or set a bookmark. :) ---------- nosy: +chris.jerdonek _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue16354> _______________________________________

Changes by Ezio Melotti <ezio.melotti@gmail.com>: ---------- nosy: +ezio.melotti type: -> enhancement _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue16354> _______________________________________

Changes by Georg Brandl <georg@python.org>: ---------- resolution: -> works for me status: open -> pending _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue16354> _______________________________________

Terry J. Reedy added the comment: It may be possible, but will not happen. A modern browser should displays your personal history options as you type. If I type 'docs' in Firefox, it gives me choices for the rest of the url, though there are a lot of obsolete entries to delete. Typing and selecting /2/ and /3/ enough will keep them at the top of the list. ---------- nosy: +terry.reedy status: pending -> open _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue16354> _______________________________________

Changes by Terry J. Reedy <tjreedy@udel.edu>: ---------- status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue16354> _______________________________________

Ezio Melotti added the comment: Maybe the OP wanted to get redirected when he reaches a doc page through e.g. Google or a direct link, rather than a bookmark/history/manually-entered URL. I usually get to the docs via Google, and either pick whatever version comes up, or edit the URL manually. That might get in the way when users open a link for a specific version and get redirected, so it's not a really good idea.
If I type 'docs' in Firefox, it gives me choices for the rest of the url
You could even set keywords like 'pydoc' and 'py2doc' without relying on the history, and optionally they could supporting a search term too.
That would remove the minor annoyance of always ending up at the Python 3 documentation and having to switch back to 2.7.
Or you could remove the annoyance by switching your code forward to Python 3 <wink>. ---------- stage: -> committed/rejected _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue16354> _______________________________________
participants (5)
-
Chris Jerdonek
-
Ezio Melotti
-
Georg Brandl
-
Terry J. Reedy
-
Wichert Akkerman