Re: PEP 378: Format Specifier for Thousands Separator

Discussion in 'Python' started by Skip Montanaro, May 21, 2013.

  1. > Thank you, but let me rephrase it. I'm already using str.format() but I'd like to use '%' (BINARY_MODULO) operator instead.

    That's unlikely to change. If not deprecated already string
    interpolation using the modulo operator has lost favor to the string
    object's format method.

    You might be able to get by with a change of your LOCALE setting
    and/or a peek at the documentation for the locale module.

    Skip
    Skip Montanaro, May 21, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Carlos Nepomuceno
    Replies:
    0
    Views:
    82
    Carlos Nepomuceno
    May 21, 2013
  2. Ned Deily
    Replies:
    0
    Views:
    78
    Ned Deily
    May 21, 2013
  3. Carlos Nepomuceno
    Replies:
    1
    Views:
    92
    88888 Dihedral
    May 24, 2013
  4. Chris “Kwpolska†Warrick

    Re: PEP 378: Format Specifier for Thousands Separator

    Chris “Kwpolska†Warrick, May 21, 2013, in forum: Python
    Replies:
    0
    Views:
    74
    Chris “Kwpolska†Warrick
    May 21, 2013
  5. Mark Lawrence
    Replies:
    0
    Views:
    78
    Mark Lawrence
    May 21, 2013
Loading...

Share This Page