On Thu, Feb 19, 2009 at 8:39 PM, Lie Ryan <lie.1...@gmail.com> wrote:

> On Thu, 19 Feb 2009 11:45:52 -0800, Marc Tompkins wrote:
> > Don't use reserved words as variable names!
>
> <nitpick>
> str, set is built-in function not reserved words. Reserved words are like
> if, for, from, as (see the whole list type keywords in help() )
>
> Nevertheless, it is a bad idea to use built-in function names.
> </nitpick>
>

Fair 'nuff.

Furthermore, there _are_ cases when you want to use built-in type or
function names: when you're overloading them with your own versions.  That's
why Python lets you use them in the first place... but if that wasn't what
you wanted to do, then avoid them like the plaque.  (A little dental humor
there.)
-- 
www.fsrtechnologies.com
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to