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 <rep...@bugs.python.org> <http://bugs.python.org/issue28692> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com