whatsnew: object.__format__ raises TypeError on non-empty string.

See issues #7994 and #9856.  I also modified with wording of the format doc
entry to better match what really happens, and added a versionchanged to the
datamodel object.__format__ section.
3 files changed