Feature request: New string conversion type to ignore list item

Steven Bethard steven.bethard at gmail.com
Tue Jun 12 00:03:22 EDT 2007


pelon wrote:
> On Jun 5, 6:27 am, thomas.p... at gmail.com wrote:
>> On 5 Jun., 13:12, Peter Otten <__pete... at web.de> wrote:
>>
>>> or like this:
>>>>>> "%s %.s %s" % ("first", "second", "third")
>>> 'first  third'
>> Hey, that's great, thanks Peter!
>>
>> Tom
> 
> Why not be consistent with other aspects of the language:
> 
> "%s %!s %s" % ("first", "second", "third")

You may be interested in the Python 3000 plans, where this is written::

     '{0}  {2}'.format('first', 'second', 'third')

http://www.python.org/dev/peps/pep-3101/

STeVe



More information about the Python-list mailing list