A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2008-June/080055.html below:

[Python-Dev] converting the stdlib to str.format

[Python-Dev] converting the stdlib to str.format [Python-Dev] converting the stdlib to str.formatMichael Foord fuzzyman at voidspace.org.uk
Thu Jun 5 14:29:21 CEST 2008
Nick Coghlan wrote:
> Greg Ewing wrote:
>> Nick Coghlan wrote:
>>
>>> - remove support for passing a single value to a format string 
>>> without wrapping it in an iterable first
>>
>> But won't that clobber a large number of the simple
>> use cases that you want to keep %-formatting for?
>
> Note the part of the proposal that allows *any* iterable on the right 
> hand side rather than the current insistence on a tuple. So the 
> single-value use cases can be boxed easily with a list.
>
> To my mind salvaging %-formatting requires removing the ambiguity over 
> whether or not the right hand side will be iterated over.
>

But that either needs doing for 3.0 or waiting until 4.0 right?

Personally I only *occasionally* find the tuple interpolation a problem 
and am perfectly happy with the current % string formatting...

Michael Foord

> Cheers,
> Nick.
>

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4