SystemError when defining

Joshua Landau joshua.landau.ws at gmail.com
Fri Nov 4 06:49:39 EDT 2011


On 11/3/11, Chris Angelico <rosuav at gmail.com> wrote:
> Fascinating!
Awesome to know!

> I did some introspection with this:
>
*snip*
>
> Variations on the theme show that during compilation of foo, the name
> is normally cemented as either a global or a local - but if it's
> keyword-only, then a LOAD_NAME opcode is emitted. It's the code for
> LOAD_NAME that looks for locals, which presumably a lambda doesn't
> have.

What is the LOAD_NAME for? The non-keyword default doesn't seem to need it.



More information about the Python-list mailing list