[Python-Dev] scope-collapse

2005-04-26 Thread Jim Jewett
[Jim Jewett] (2) Add a way to say Make this function I'm calling use *my* locals and globals. This seems to meet all the agreed-upon-as-good use cases, but there is disagreement over how to sensibly write it. [Guido] What happens to names that have a different meaning in each scope?

Re: [Python-Dev] scope-collapse

2005-04-26 Thread Guido van Rossum
[Jim jewett] The pretend-it-is-a-generator proposals try to specify that only certain names will be shared, in only certain ways. Huh? I don't see it this way. There is *no* sharing between the frame of the generator and the frame of the block. The block is a permanent part of the frame