[Python-ideas] syntax for set

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Nov 25 03:42:55 CET 2010


On 24/11/10 22:40, Masklinn wrote:

> Since 1s will be in the code source in any case (as free-standing integers
> or as part of floats) wouldn't it be more sensible to ban `l` from
> identifiers? As well as uppercase O just to be on the safe side?

Don't forget Z, A and S to eliminate confusion with 2, 4 and 5.

> having to write `FIVE HUNDRED FORTY-ONE BILLION FOUR HUNDRED FIFTY ONE
> MILLION NINE HUNDRED EIGHTY ONE THOUSAND NINE HUNDRED TWENTY ONE` rather than
> 514451981921 would surely reduce the usage of redundant magic numbers in the code.

Please, no. We'd have endless arguments over whether it should be
NINE HUNDRED TWENTY ONE or NINE HUNDRED AND TWENTY ONE. :-(

-- 
Greg



More information about the Python-ideas mailing list