Message257037
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 |
|
Date |
User |
Action |
Args |
2015-12-26 15:03:56 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, fdrake, rhettinger, ncoghlan |
2015-12-26 15:03:56 | serhiy.storchaka | set | messageid: <1451142236.84.0.215229457015.issue25956@psf.upfronthosting.co.za> |
2015-12-26 15:03:54 | serhiy.storchaka | link | issue25956 messages |
2015-12-26 15:03:52 | serhiy.storchaka | create | |
|