Dumb Q #1

Terry Reedy tjreedy at udel.edu
Tue Jan 28 14:43:46 EST 2003


"Alex Martelli" <aleax at aleax.it> wrote in message
news:pHsZ9.94111$0v.2743842 at news1.tin.it...
> Don't use built-in names of types, such as "file", "list",
> "tuple", etc, to name your own variables: get into the habit
> of naming them in significant ways, or, worst case, at least
> use "aFile", "someList", etc.

I agree.  Python newcomers should ignore and not imitate such usages
in older code, such as in some of the standard library modules, which
were written before the new builtins were added (in 2.2) (or written
by people who had not yet changed old habits), and which hvd not yet
been updated.  The same goes for other anachronisms, such as listed in
PEP-290.

Terry J. Reedy






More information about the Python-list mailing list