Working around a lack of 'goto' in python

Isaac To kkto at csis.hku.hk
Wed Mar 10 10:58:30 EST 2004


>>>>> "Jeff" == Jeff Epler <jepler at unpythonic.net> writes:

    Jeff> Are you certain that calling a function allocates a dictionary?  A
    Jeff> function's locals are stored as indices in a C array unless a
    Jeff> function uses bare exec.  I'm not sure what a dictionary is needed
    Jeff> for.

You mean a function which calls the locals() function is byte-compiled
differently from a function that won't call locals()?

Regards,
Isaac.



More information about the Python-list mailing list