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

Xiang Zhang report at bugs.python.org
Tue Nov 15 08:53:31 EST 2016


Xiang Zhang added the comment:

I think the stacklevel should be 3.

stacklevel = 3:

./python -Walways /tmp/a.py 
/tmp/a.py:2: DeprecationWarning: Plural value must be an integer, got float
  c2py('n!=1')(1.1)

stacklevel = 4:

./python -Walways /tmp/a.py 
sys:1: DeprecationWarning: Plural value must be an integer, got float

----------

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


More information about the Python-bugs-list mailing list