[Python-Dev] Re: Dynamic nested scopes
Barry A. Warsaw
barry@wooz.org
Fri, 3 Nov 2000 10:45:05 -0500 (EST)
>>>>> "GvR" == Guido van Rossum <guido@python.org> writes:
GvR> That's up for discussion. Note that the open() function is
GvR> special in this respect -- I don't see you doing the same to
GvR> range() or hash().
Me neither, but special casing overridability seems like a fragile
hack.
GvR> If this is deemed a useful feature (for open()), we can make
GvR> a rule about which built-ins you cannot override like this
GvR> and which ones you can.
Hmm, maybe we need __open__() and an open-hook? ;)
-Barry