Re: namespaces in eval(): spot error in 3 line program

2005-05-25 Thread Terry Reedy
"pasa" <[EMAIL PROTECTED]> wrote in message > Do functions carry their own pointer to global namespace, > which gets defined at function compile time, or what is > happening here? To expand on Just's answer: For lexical scoping -- resolution of globals in the definition context -- some refer

Re: namespaces in eval(): spot error in 3 line program

2005-05-25 Thread Just
In article <[EMAIL PROTECTED]>, "pasa" <[EMAIL PROTECTED]> wrote: > I'm an old time python user, but just got bitten by namespaces in eval. > If this is an old discussion somewhere, feel free to point me there. > > Based on the documentation, I would have expected the following to > work: > > d