> My point was: `iter` the func exists in python (built-in with '-'), one may
> use it at times. Giving an application var this name hides, which
> accosionnally leads to bugs. I have been bitten by such a bug more than once
> in the past, and once hard to find, asp. with the built-in func `range` (a
> very tempting var name, isn't it?).

Just as a small side note: there are linters for Python that will warn
if we are trying to redefine a built-in.  Pylint, for example, has
warning W0622 "Redefining built-in" to catch this class of gotchas.

    http://www.pylint.org/
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to