Issue #18425: Add docstrings to IdleHistory.py.  Remove redundant 'history_'
prefix from two attributes and two methods of History class.
Issue 18719: Remove a false optimization

Remove an unused early-out test from the critical path for
dict and set lookups.

When the strings already have matching lengths and hashes,
there is no additional information gained by checking the first
characters (the probability of a mismatch is already known to
be less than 1 in 2**64).
Issue #18718: datetime documentation contradictory on leap second support