]> granicus.if.org Git - python/commit
bpo-36793: Remove unneeded __str__ definitions. (GH-13081)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 6 May 2019 19:29:40 +0000 (22:29 +0300)
committerGitHub <noreply@github.com>
Mon, 6 May 2019 19:29:40 +0000 (22:29 +0300)
commit96aeaec64738b730c719562125070a52ed570210
treed68994f93014d081e9a441e7bf7dfda3aaadd402
parent964663089547ca110199e23867b46b07ff4be88c
bpo-36793: Remove unneeded __str__ definitions. (GH-13081)

Classes that define __str__ the same as __repr__ can
just inherit it from object.
18 files changed:
Doc/whatsnew/3.8.rst
Lib/_pydecimal.py
Lib/asyncore.py
Lib/doctest.py
Lib/email/charset.py
Lib/http/client.py
Lib/json/encoder.py
Lib/logging/__init__.py
Lib/sre_constants.py
Lib/subprocess.py
Lib/xmlrpc/client.py
Misc/NEWS.d/next/Core and Builtins/2019-05-04-16-15-33.bpo-36793.Izog4Z.rst [new file with mode: 0644]
Modules/_decimal/_decimal.c
Modules/_json.c
Objects/boolobject.c
Objects/complexobject.c
Objects/floatobject.c
Objects/longobject.c