[Python-Dev] Static scoping of builtins (Re: Dynamic nested scopes)

Greg Ewing greg@cosc.canterbury.ac.nz
Mon, 06 Nov 2000 14:03:06 +1300 (NZDT)


> I'd be happy to make an explicit list of
> those builtins that should not be messed with

There's a precedent for this in Scheme, which has a notion
of "integrable procedures".

As for the rest, with static scoping it will be possible to
make access to builtins just as efficient as locals, while
still allowing them to be rebound, so there's no reason why
__builtin__.__dict__.open = foo can't continue to work,
if so desired.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg@cosc.canterbury.ac.nz	   +--------------------------------------+