Message77725
| Author |
rhettinger |
| Recipients |
fredrikj, loewis, mark.dickinson, rhettinger, terry.reedy, vstinner |
| Date |
2008年12月13日.10:53:22 |
| SpamBayes Score |
5.7441248e-05 |
| Marked as misclassified |
No |
| Message-id |
<1229165618.52.0.84946910742.issue3439@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
It was probably true. The issue is how well the words self-separate
visually and whether an underscore would create a detrimental mental
pause. So fromkeys() and fromhex() read fine and would feel awkward
with an underscore. But bitlength causes me a mental double-take when
my mind searches for the word separation. It that case, PEP 8 suggests
that an underscore be added for clarity. This is probably why
Mathematica chose BitLength in titlecase instead of Bitlength. Logic
aside, bit_length() just looks and feels better to me.
Did you look at the O(lg n) algorithm yet? Any thoughts? |
|