Oleg Broytmann wrote: > When I use str(container) instead of repr(comtainer) does Python need to > guess if I want an unambiguous representation or a printable representation > of items? I don't think there is a room for guessing - I explicitly said > str().
But there's no single, obvious way of doing str() on a list that will suit all situations. So Python doesn't define str() for a list *at all*. You're getting the fallback, which is repr(). -- Greg _______________________________________________ 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