Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #102102 > unrolled thread

Re: .format won't display my value with 2 decimal places: Why?

Started byChris Angelico <rosuav@gmail.com>
First post2016-01-26 04:48 +1100
Last post2016-01-26 04:48 +1100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: .format won't display my value with 2 decimal places: Why? Chris Angelico <rosuav@gmail.com> - 2016-01-26 04:48 +1100

#102102 — Re: .format won't display my value with 2 decimal places: Why?

FromChris Angelico <rosuav@gmail.com>
Date2016-01-26 04:48 +1100
SubjectRe: .format won't display my value with 2 decimal places: Why?
Message-ID<mailman.227.1453744119.15297.python-list@python.org>
On Tue, Jan 26, 2016 at 4:32 AM, Random832 <random832@fastmail.com> wrote:
> On Mon, Jan 25, 2016, at 12:23, Chris Angelico wrote:
>> if some translations don't use a token at all,
>
> I'm not sure what situation that would be reasonable in.

I don't do much with different human languages, but it's possible that
you might build up a message in a variety of different ways, and
include tokens differently. Maybe you'd include a product name in two
different places, and each translation would get to choose which of
the lines includes it. Maybe there's a fixed string that carries the
sense of what you're saying better than the parameterized one does, so
you ignore the parameter. It's the same flexibility as reordering
tokens, but some tokens get reordered to nowhere. (Is it still a
teleportation spell when the destination is oblivion? -- Venser)

ChrisA

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web