CRAZY: First class namespaces

Darrell Gallion darrell at dorb.com
Mon May 29 14:26:56 EDT 2000


Christian Tismer wrote:
> I therefore don't see a good reason to forbid
> it in the first place if it is easy to implement.
>

One great thing about Python is just how much strange (expressive) stuff is
possible. Readability counter balances this craziness, at least I hope so.

Dynamic scope sounds very natural with continuations. If something about the
function call could tell the user what's about to happen that would be nice.

def dyn():
   uses x,y
    x=y+1

def useDyn():
    myX=1
    myY=2
    with x : myX , y : myY
        dyn()
    assert(myX==3)

--Darrell Gallion






More information about the Python-list mailing list