Issue #3832: backport 677a9326b4d4 to 2.7 (and delete some obsolete code).

--HG--
branch : 2.7
Update 2.7 idlelib.configHandler and reduce differences from 3.4 code.

--HG--
branch : 2.7
Document builtin classes as such, not functions.

--HG--
branch : 2.7
extra : transplant_source : %AA%FC%0D%0A%18%A2%ED%C3%D7%80Z%CD%DF%C76%A5%BCZ%29%B8
Closes #22507: document that PyType_IsSubtype does not call __subclasscheck__.

--HG--
branch : 2.7
extra : amend_source : ebb8490ffb62fbdfaebef3d8e13345368992b871
extra : transplant_source : %DB%F2%A5%25u%EE%24%86%E2%C8_%E2%A9%E0j0%97%1A%83I
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.

--HG--
branch : 2.7
extra : amend_source : 0f79df1b83f2895b633edc56891df4868a21a028
Closes #14303: socket.makefile() does not call dup() anymore on the socket fd.

--HG--
branch : 2.7
Issue #1686: Fix string.Template when overriding the pattern attribute.

--HG--
branch : 2.7
extra : amend_source : 6d47804ac64761e375624ae55662d5cc0065a7e4
Closes #17057: fix grammar in old-style vs new-style class docs.

--HG--
branch : 2.7
Closes #16155: fix a few errors in doctest output of the FAQ pages.

--HG--
branch : 2.7
Closes #19071: "self" argument is not the module for module functions in 2.x.

--HG--
branch : 2.7
make _socket.socket weakrefable (closes #22569)

Patch from Alex Gaynor.

--HG--
branch : 2.7
extra : amend_source : 2606e00f3aa4e1599ea494d15ad7b34780cdbbbb
use source role instead of linking to svn

--HG--
branch : 2.7
extra : source : 1a8d0737b4d1ae7e746b377938b86a4141da9571