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.

作者 rhettinger
收信人 fredrikj, loewis, mark.dickinson, pitrou, rhettinger, skip.montanaro, terry.reedy, vstinner
日期 2008-12-16.20:16:57
SpamBayes Score 9.874308e-05
Marked as misclassified
Message-id <1229458619.05.0.821262676388.issue3439@psf.upfronthosting.co.za>
In-reply-to
内容
IMO, the choices are something like my version or none at all.  The
repeated floor division by two of abs(x) has ZERO explanatory power and
may even detract from a beginner's ability to understand what the method
does.  Show that code to most finance people and they will avoid the
method entirely.

Anyone who disagrees needs to show both code fragments to some junior
programmers and see which best leads to understanding the method and
being able to correctly predict the edge cases bordering powers of two,
the zero case, and how negatives are handled.  

No fair trying this experiment on assembly language programmers ;-)
历史
日期 用户 动作 参数
2008-12-16 20:16:59rhettinger修改recipients: + rhettinger, loewis, skip.montanaro, terry.reedy, mark.dickinson, pitrou, vstinner, fredrikj
2008-12-16 20:16:59rhettinger修改messageid: <1229458619.05.0.821262676388.issue3439@psf.upfronthosting.co.za>
2008-12-16 20:16:58rhettinger链接issue3439 messages
2008-12-16 20:16:57rhettinger创建