]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-33947: dataclasses no longer can raise RecursionError in repr (GF9916) (#9970)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 19 Oct 2018 17:28:30 +0000 (10:28 -0700)
committerEric V. Smith <ericvsmith@users.noreply.github.com>
Fri, 19 Oct 2018 17:28:30 +0000 (13:28 -0400)
commitb9182aa7dad8991fc8768ae494b45b5f7c316aca
tree19f78dba054264b16b69d7d6ee4fc5ada3ae56e5
parentbd9c2ce7acaef45f23c2659b854fc9925096d040
bpo-33947:  dataclasses no longer can raise RecursionError in repr (GF9916) (#9970)

The reprlib code was copied here instead of importing reprlib. I'm not sure if we really need to avoid the import, but since I expect dataclasses to be more common that reprlib, it seems wise. Plus, the code is small.
(cherry picked from commit dd13c88b5371e13fc16b84e2f9b8715d917de269)

Co-authored-by: Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి) <srinivasreddy@users.noreply.github.com>
Lib/dataclasses.py
Lib/test/test_dataclasses.py
Misc/NEWS.d/next/Library/2018-10-17-02-15-23.bpo-33947.SRuq3T.rst [new file with mode: 0644]