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 serhiy.storchaka
Recipients fdrake, ncoghlan, rhettinger, serhiy.storchaka
Date 2015-12-26.15:03:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
For now repr() of recursive object replaces nested representations of self with a placeholder containing "...": "[...]" for list, "{...}" for dict, "set(...)" for set, and just "..." for Python classes that use reprlib. Unfortunately such replacements are valid expressions in Python 3.

The same replacement is used for too deeply nested objects in reprlib and pprint.

Proposed patch makes "<...>" to be always used as a placeholder. This is invalid syntax and well visually distinguishable.

Python-Ideas discussion:
Date User Action Args
2015-12-26 15:03:56serhiy.storchakasetrecipients: + serhiy.storchaka, fdrake, rhettinger, ncoghlan
2015-12-26 15:03:56serhiy.storchakasetmessageid: <>
2015-12-26 15:03:54serhiy.storchakalinkissue25956 messages
2015-12-26 15:03:52serhiy.storchakacreate