[issue25956] Unambiguous representation of recursive objects

2015-12-28 Thread leewz
leewz added the comment: Hey, I brought this up last month in the #python channel. I suggested `[ . . . ]`. I agree that there's no great need, though. -- nosy: +leewz ___ Python tracker _

[issue25956] Unambiguous representation of recursive objects

2015-12-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Rejected by Guido. http://permalink.gmane.org/gmane.comp.python.ideas/37562 -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue25956] Unambiguous representation of recursive objects

2015-12-26 Thread Chris Angelico
Chris Angelico added the comment: LGTM. I'm currently seeing failures in test_ssl, but they weren't introduced by this patch. I'll run with this patch and see if I run into any third party test failures. +1 on the change. -- nosy: +Rosuav ___ Pytho

[issue25956] Unambiguous representation of recursive objects

2015-12-26 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: 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