[Python-3000] Please don't kill the % operator... (original) (raw)

Guido van Rossum guido at python.org
Fri Aug 17 04:11:11 CEST 2007


On 8/16/07, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:

Guido van Rossum wrote: > The only added wrinkle is that you can also write > {0!r} to force using repr() on the value.

What if you want a field width with that? Will you be able to write {0!10r} or will it have to be {0!r:10}?

The latter.

-- --Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-3000 mailing list