[Python-Dev] converting the stdlib to str.format (original) (raw)
Steven D'Aprano steve at pearwood.info
Thu Jun 5 04:30:33 CEST 2008
- Previous message: [Python-Dev] converting the stdlib to str.format
- Next message: [Python-Dev] converting the stdlib to str.format
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, 5 Jun 2008 11:48:07 am 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?
Yes, I don't particularly see the advantage of writing:
"spam %s spam" % (value,)
over
"spam %s spam" % value
Why require the first version?
-- Steven
- Previous message: [Python-Dev] converting the stdlib to str.format
- Next message: [Python-Dev] converting the stdlib to str.format
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]