[Python-ideas] Briefer string format
Mike Miller
python-ideas at mgmiller.net
Wed Aug 5 01:05:54 CEST 2015
On 08/04/2015 01:20 PM, Eric V. Smith wrote:
> It's rejected because .format treats:
> '{:10}{[name]}'.format(x, y) --> format(x, '10') + format(y['name'])
Isn't this what already happens? Seems odd to go in a different direction just
avoid an implementation that already exists, even though it may not be perfect.
Perhaps it's time to deprecate the troublesome syntax?
Fortunately there's plenty of time before the next version of python to figure
this out.
-Mike
More information about the Python-ideas
mailing list