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.
R
R David Murray committed
d630e79cc7ac59bd11faa2a4ad4f1d03a2e95c11
Parent: 13b493e