code blocks in Python

Skip Montanaro skip at pobox.com
Mon Nov 24 09:48:16 EST 2003


    Jeff> how will the implementation of "code blocks" deal with the fact
    Jeff> that in a, x is a fastlocal with a particular index, but in b
    Jeff> there's no local x?

    hjl> I agree that performance could be made better. But that's an issue
    hjl> for later....

You ignored Jeff's primary questions.  What are the semantics of a named
code block such as you propose?  What if it's executed in a context which
doesn't contain the variables it uses?  What expressive power does it give
to Python that Python doesn't currently have?

Skip






More information about the Python-list mailing list