"Don't rebind built-in names*" - it confuses readers

Mark Janssen dreamingforward at gmail.com
Mon Jun 10 20:20:58 EDT 2013


>>         list = []
>> Reading further, one sees that the function works with two lists, a list of
>> file names, unfortunately called 'list',
>
> That is very good advice in general:  never choose a variable name
> that is a keyword.

Btw,  shouldn't it be illegal anyway?  Most compilers don't let you do
use a keyword as a variable name....

-- 
MarkJ
Tacoma, Washington



More information about the Python-list mailing list