Scope: Simple and explicit better than nested?

Remco Gerlich scarblac at pino.selwerd.nl
Wed Feb 7 12:27:59 EST 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)):
>         my_module.doSomething(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 :-)

-- 
Remco Gerlich



More information about the Python-list mailing list