"Don't rebind built-in names*" - it confuses readers
Mark Janssen
dreamingforward at gmail.com
Wed Jun 12 15:40:30 EDT 2013
On Wed, Jun 12, 2013 at 7:24 AM, Grant Edwards <invalid at invalid.invalid> wrote:
> On 2013-06-11, Mark Janssen <dreamingforward at gmail.com> wrote:
>>> 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.
>
> You can't choose a vriable name that is a keyword: the compiler won't
> allow it.
>
> "list" isn't a keyword.
You're right. I was being sloppy.
--
MarkJ
Tacoma, Washington
More information about the Python-list
mailing list