Issue #3832: backport 677a9326b4d4 to 2.7 (and delete some obsolete code).
Update 2.7 idlelib.configHandler and reduce differences from 3.4 code.
Document builtin classes as such, not functions.
Closes #22507: document that PyType_IsSubtype does not call __subclasscheck__.
Closes #10031: overhaul the "imports" section of the programming FAQ.

Remove the advice to never use relative imports.
Remove the advice to locally import modules in __init__, it is a strange practice.
Remove the advice to use "from ... import *" with some modules.
Closes #14303: socket.makefile() does not call dup() anymore on the socket fd.
Issue #1686: Fix string.Template when overriding the pattern attribute.
Closes #17057: fix grammar in old-style vs new-style class docs.
Closes #16155: fix a few errors in doctest output of the FAQ pages.
Closes #19071: "self" argument is not the module for module functions in 2.x.
make _socket.socket weakrefable (closes #22569)

Patch from Alex Gaynor.
use source role instead of linking to svn
idlelib.configHandler: revise docstrings, add spaces, use False/True, add some
TODOs (mostly to do after add tests), and make a few other changes.
Issue 3068: Move idlelib.configDialog action button creation into a separate
method so it can be reused by the new extension dialog.
Closes #22580: Fix documentation of PyUnicode_Tailmatch()

The result type is Py_ssize_t (and not int).
De-'colour'ize stdlib except for idlelib.configDialog.
Tweak docstrigs and comments in affected functions in idlelib.configHandler.
#0712: 2to3 has a new "asserts" fixer that replaces deprecated names of unittest methods.

Patch by Ezio Melotti, docs by Berker Peksag.
Issue #22575: Revise bytearray entry for 2.7.
Issue #11694: Raise ConversionError in xdrlib as documented
Issue #15414: Clean and correct the os.path.join docs.

In particular, correctly describe the behavior of ntpath.join.

Based on a patch by Dave Sawyer.