On Tue, Feb 25, 2014 at 1:40 PM, Yury Selivanov <[email protected]>wrote:
> > On 2/25/2014, 2:33 PM, Guido van Rossum wrote: > >> On Tue, Feb 25, 2014 at 9:00 AM, Victor Stinner <[email protected] >> >wrote: >> >> - replace "{} {}" with "{0} {1}" >> >> This specific case we can fix by using named placeholders, > i.e. instead if > > '{} {!r}'.format(spam_expr, ham_expr) > > we can use > > '{spam} {ham!r}'.format(spam=spam_expr, ham=ham_expr) > > Guido, would you be OK with this? > No, that's just even more verbose. -- --Guido van Rossum (python.org/~guido)
