<br><br><div class="gmail_quote">On Wed, Nov 24, 2010 at 12:05 AM, Mike Meyer <span dir="ltr"><<a href="mailto:mwm-keyword-python.b4bdba@mired.org">mwm-keyword-python.b4bdba@mired.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">"Masklinn" <<a href="mailto:masklinn@masklinn.net">masklinn@masklinn.net</a>> wrote:<br>
<br>
>As an alternative, I would modestly propose banning integer literals<br>
>altogether in favor of english-spelled constants: `ONE` can hardly be<br>
>confused with the letter `l`, and having to write `FIVE HUNDRED<br>
>FORTY-ONE BILLION FOUR HUNDRED FIFTY ONE MILLION NINE HUNDRED EIGHTY<br>
>ONE THOUSAND NINE HUNDRED TWENTY ONE` rather than 514451981921 would<br>
>surely reduce the usage of redundant magic numbers in the code.</div></blockquote><div> </div><div>+1 If it's good enough for my banker when writing checks, it should be good enough for Python. But it might be safer if we required the Arabic numerals in parentheses following the English. If the two don't match, we could raise a CheckingError. Seems to be a basically self-documenting error type to me.</div>

</div>