[issue28692] gettext: deprecate selecting plural form by fractional numbers

Julien Palard report at bugs.python.org
Sun Dec 4 09:31:10 EST 2016


Julien Palard added the comment:

> It seems to me that a fractional number should be formatted with the same form independently from it's value

Ok, so 1.000 seconds, ok, LGTM.

Should we mention something explicit about it? Not sure how to write it down, but I still fear that everyone's reaction will be "Oh can't give a float? Let my put a round() in my call" and stay with the same plural bug as before.

Maybe replace

> Plural value must be an integer

by

> Should not use ngettext with floating point, consider an invariant form.

?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28692>
_______________________________________


More information about the Python-bugs-list mailing list