News for hackers. Stuff that matters.
Re:New string formatting in Python by yeukhon on Sunday January 03, 2016 @07:18PM (#10833304)
Being a die-hard Python user on a daily basis, I concur. I think these core devs should not invent too many new syntax and ways to solve problems which don't need to be added to the language.

I am not sure why i18n is a big deal, let another library deal with it.

Whatever, I have the choice not using this feature after it is accepted and implemented. Their PEP discussion on email always ended up in tangential. Problem I always have with string manipulation is dealing with long string, which for coding style I'd split into multiple +, and thus using format is pretty ugly.

Re:New string formatting in Python by scrollaway on Sunday January 03, 2016 @07:32PM (#10833361)
You don't have to use + to join strings on multiple lines. Here:

    >>> (" foo "
    ...  "bar.")
    ' foo bar.'
Re:New string formatting in Python by skj on Sunday January 03, 2016 @11:14PM (#10833954)
The other day I spent some time tracking down a bug where someone forgot a trailing comma in a multi-line parameter list.

That was annoying.

Re:New string formatting in Python by Luyt on Monday January 04, 2016 @04:06AM (#10834625)
Ok, but this only works for literals.
Re:New string formatting in Python by scrollaway on Monday January 04, 2016 @04:48AM (#10834718)
Yes, which is what I'm replying to.