[Python-ideas] Make Python 2.7’s online docs optionally redirect to Python 3 online docs
steve at pearwood.info
Thu Mar 7 08:56:06 EST 2019
On Thu, Mar 07, 2019 at 08:10:20AM -0500, James Lu wrote:
> Rationale: When I use a search engine to google a Python question, I
> frequently get a link to a page of the Python 2.7 documentation that
> shows before the Python 3 documentation link.
> This is annoying and slows down my programming.
and related links from that issue.
I've found that the search engines are getting better at linking to the
more recent docs. For example, all of these:
give me Python 3 first and Python 2 second. Even the comparatively
obscure "sndhdr" module gets Python 3 first:
However these gives Python 2 first:
But note that the docs do include a drop down menu to select the
version, so it shouldn't be that difficult to swap from old versions to
the most recent.
(Unless you're looking at *really* old versions like 1.5.)
More information about the Python-ideas