[issue9840] Recursive Repr
Éric Araujo
report at bugs.python.org
Mon Sep 13 02:13:09 CEST 2010
Éric Araujo <merwok at netwok.org> 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, common case can’t just use @recursive_repr (without parens) which seems to me more natural.
One markup glitch: :meth:`repr__` lacks two underscores.
(Unimportant side question: Since collections defines __all__, why are imported names renamed with a trailing underscore?)
----------
nosy: +eric.araujo
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9840>
_______________________________________
More information about the Python-bugs-list
mailing list