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 <1451142236.84.0.215229457015.issue25956@psf.upfronthosting.co.za>
In-reply-to
Content
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: http://comments.gmane.org/gmane.comp.python.ideas/37555
History
Date User Action Args
2015-12-26 15:03:56serhiy.storchakasetrecipients: + serhiy.storchaka, fdrake, rhettinger, ncoghlan
2015-12-26 15:03:56serhiy.storchakasetmessageid: <1451142236.84.0.215229457015.issue25956@psf.upfronthosting.co.za>
2015-12-26 15:03:54serhiy.storchakalinkissue25956 messages
2015-12-26 15:03:52serhiy.storchakacreate