➜

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.

作者 gregory.p.smith
收信人 alexandre.vassalotti, christian.heimes, donmez, gregory.p.smith, gvanrossum, loewis, mark.dickinson, matejcik, nnorwitz, pitrou, vstinner
日期 2009-05-13.16:01:07
SpamBayes Score 4.7417732e-08
Marked as misclassified 否
Message-id <1242230469.85.0.373271661283.issue1621@psf.upfronthosting.co.za>
In-reply-to
内容
"""I assume these changes were made to silence warnings from
-Wstrict-overflow, but I don't think that should be a goal:
I'd suggest only making changes where there's a genuine
possibility of overflow (even if it's a remote one), and
leaving the code unchanged if it's reasonably easy to
see that overflow is impossible."""

There is a lot of value in being able to compile with -Wstrict-overflow 
and know that every warning omitted is something to be looked at.  I 
think it is advantageous to make all code pass this.  Having any 
"expected" warnings during compilation tends to lead people to ignore 
all warnings.

That said, I agree those particular examples of unnecessary casts are 
ugly and should be written differently if they are actually done to 
prevent a warning.
历史
日期 用户 动作 参数
2009-05-13 16:01:10gregory.p.smith修改recipients: + gregory.p.smith, gvanrossum, loewis, nnorwitz, mark.dickinson, pitrou, vstinner, christian.heimes, alexandre.vassalotti, donmez, matejcik
2009-05-13 16:01:09gregory.p.smith修改messageid: <1242230469.85.0.373271661283.issue1621@psf.upfronthosting.co.za>
2009-05-13 16:01:08gregory.p.smith链接issue1621 messages
2009-05-13 16:01:07gregory.p.smith创建