News for hackers. Stuff that matters.
Re:New string formatting in Python by MereInterest on Sunday January 03, 2016 @08:41PM (#10833574)
PHP has had it forever. Given PHP's reputation, I'm not sure if that is a good argument for this feature. Rather than '%s' and '%d', why not just use '{}' and '.format'? That way, each argument is converted to a string appropriately. If it becomes confusing with many arguments, it is easy to name the parameters '{myparam}'

There are no comments on this comment yet.