On 8/20/07, Greg Ewing <[EMAIL PROTECTED]> wrote: > Guido van Rossum wrote: > > But how often will you need this? (You only need the !s part if you > > don't know that the argument is a string.) > > Maybe I'm confused. I thought we had agreed that most > types would delegate to str if they didn't understand > the format, so most of the time there wouldn't be any > need to use "!s". Is that still true?
Yes, by virtue of this being what object.__format__ does (AFAIU). > If not, I think it will be very inconvenient, as I > very frequently format things of all sorts of types > using "%s", and rely on it doing something reasonable. -- --Guido van Rossum (home page: http://www.python.org/~guido/) _______________________________________________ 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