[issue9840] Recursive Repr

2011-04-05 Thread Éric Araujo
Éric Araujo added the comment: FTR, the answer to my interrogation in my previous message is contained in Raymond’s PyCon talk about API design: http://pycon.blip.tv/file/4883290/ :) -- ___ Python tracker

[issue9840] Recursive Repr

2010-09-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: Committed in r84792. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ P

[issue9840] Recursive Repr

2010-09-12 Thread Éric Araujo
Éric Araujo added the comment: Good idea. I wonder if the genericity (being able to specify the placeholder) is needed; the ellipsis is used by built-in containers (not documented AFAICT, see #9842) and seems a good choice for most (all?) of the cases. What bothers me is that this simple, c

[issue9840] Recursive Repr

2010-09-12 Thread Raymond Hettinger
New submission from Raymond Hettinger : Add a recursive_repr() decorator to provide a solution to the problem of creating a container __repr__ method that doesn't fail for recursive calls. -- files: recursive_repr.patch keywords: patch messages: 116239 nosy: rhettinger priority: normal