For a programming search engine, the official docs of languages should get special treatment. Google often surfaces outdated versions of the documentation, but they're usually at the top. If you want to improve on this, you should (a) rank official docs the highest, (b) give extra weight to docs.python.org if the query contains "python", (c) merge the same page for different versions and add a version picker.