Jim Jewett wrote:
So I suggest that he or she use str, rather than repr -- and that we
fix containers to make this possible.

And hope that every other author of a Python container class on the planet does the same thing?

Recursing downwards with str() instead of repr() will break as soon as it encounters a container class which either doesn't resurce with str() or doesn't propagate a new "this is really str()" flag (depending on how Oleg's PEP suggests implementing this).

PEP 3138 fixes the problem without relying on third parties to do anything.

Cheers,
Nick.

--
Nick Coghlan   |   [EMAIL PROTECTED]   |   Brisbane, Australia
---------------------------------------------------------------
            http://www.boredomandlaziness.org
_______________________________________________
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

Reply via email to