[Tutor] lists of lists: more Chutes & Ladders!

eryksun eryksun at gmail.com
Wed Jan 1 04:00:32 CET 2014


On Tue, Dec 31, 2013 at 4:27 AM, spir <denis.spir at gmail.com> wrote:
> In addition, "iter" is also the name of a builtin function, like "print".

While iter is a built-in function, it would be clearer if you
referenced the __builtins__ namespace. Built-in objects are linked
into the interpreter, either statically or from a shared library (.so,
.pyd). But the __builtins__ namespace can and does include names for
non-built-in objects (e.g. help and exit). The important point in this
context is that iter is in the builtins module, not that it's a
built-in function. There are lots of built-in objects that aren't in
builtins.


More information about the Tutor mailing list