This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xiang.zhang
Recipients Tim.Graham, loewis, mdk, serhiy.storchaka, xiang.zhang
Date 2016-11-15.13:53:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1479218011.2.0.134172752777.issue28692@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2016-11-15 13:53:31xiang.zhangsetrecipients: + xiang.zhang, loewis, serhiy.storchaka, Tim.Graham, mdk
2016-11-15 13:53:31xiang.zhangsetmessageid: <1479218011.2.0.134172752777.issue28692@psf.upfronthosting.co.za>
2016-11-15 13:53:31xiang.zhanglinkissue28692 messages
2016-11-15 13:53:31xiang.zhangcreate