I think asking every container type to implement str just to ensure its subobjects are printed correctly is a losing proposition.
It might be possible for repr to take an extra keyword argument indicating that it is being used in place of string. Then, when it recurses on subobjects, it should call str instead of repr when this argument is passed. (And the top-level delegation should of course pass this argument when changing str to repr.) -jJ _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com