l = range(int(1E9))

Ian Kelly ian.g.kelly at gmail.com
Sat May 2 17:32:54 EDT 2015


On Sat, May 2, 2015 at 3:28 PM, Tony the Tiger <tony at tiger.invalid> wrote:
> On Fri, 01 May 2015 14:42:04 +1000, Steven D'Aprano wrote:
>
>> use "l" as a variable name, as it looks too much like 1
>
> If you use a better font, they are very different. Besides, a variable
> name cannot start with a digit (nor can it be a single digit), so it's a
> given that it's an 'l'.

Of course it can be a single digit. You're assuming that the person
reading the code already somehow knows that this is a variable name
and not an integer literal.



More information about the Python-list mailing list