Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #15335

Re: SystemError when defining

References <CAN1F8qXCTPKrJfMh_jNS+HWNLPfDrWr-3BvdHDJ2+eP7EaWoGw@mail.gmail.com> <CAPTjJmoeAMhH2fLMhR_R9iUgceWVZAWDMUu6=E0egN8C6-TS=A@mail.gmail.com>
Date 2011-11-04 10:49 +0000
Subject Re: SystemError when defining
From Joshua Landau <joshua.landau.ws@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.2428.1320403781.27778.python-list@python.org> (permalink)

Show all headers | View raw


On 11/3/11, Chris Angelico <rosuav@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.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: SystemError when defining Joshua Landau <joshua.landau.ws@gmail.com> - 2011-11-04 10:49 +0000

csiph-web