This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.smith
Recipients eric.smith
Date 2018-06-23.12:58:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1529758726.17.0.56676864532.issue33947@psf.upfronthosting.co.za>
In-reply-to
Content
>>> @dataclass
... class C:
...   f: "C"
...
>>> c = C(None)
>>> c.f = c
>>> c
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<string>", line 2, in __repr__
  File "<string>", line 2, in __repr__
  File "<string>", line 2, in __repr__
  [Previous line repeated 328 more times]
RecursionError: maximum recursion depth exceeded
>>>

It would be better to produce "C(f=...)".
History
Date User Action Args
2018-06-23 12:58:46eric.smithsetrecipients: + eric.smith
2018-06-23 12:58:46eric.smithsetmessageid: <1529758726.17.0.56676864532.issue33947@psf.upfronthosting.co.za>
2018-06-23 12:58:46eric.smithlinkissue33947 messages
2018-06-23 12:58:45eric.smithcreate