Scope: Simple and explicit better than nested?
scarblac at pino.selwerd.nl
Wed Feb 7 18:27:59 CET 2001
rturpin at my-deja.com <rturpin at my-deja.com> wrote in comp.lang.python:
> But to get to THEIR objects would require EXPLICIT scoping:
> if (builtin.callable(foo)):
> The only unscoped names would be local variables and
> parameters. Period, full stop. That should be easy to
> understand, even for Pascal and SmallTalk programmers.
Having to use builtin.range, builtin.int, builtin.open, builtin.repr, etc
etc completely kills the ease of use of Python. And it breaks all existing
code. In short, a very silly idea :-)
More information about the Python-list