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


Groups > comp.lang.python > #15335

Re: SystemError when defining

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <joshua.landau.ws@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.045
X-Spam-Evidence '*H*': 0.91; '*S*': 0.00; 'subject:when': 0.07; 'foo,': 0.09; 'variations': 0.09; 'this:': 0.15; 'fascinating!': 0.16; 'lambda': 0.16; 'opcode': 0.16; 'wrote:': 0.18; "doesn't": 0.23; 'header:In-Reply-To:1': 0.23; 'code': 0.25; 'looks': 0.28; 'message-id:@mail.gmail.com': 0.29; 'seem': 0.30; 'chris': 0.30; 'to:addr:python-list': 0.32; 'it.': 0.33; 'normally': 0.34; 'awesome': 0.36; 'for?': 0.36; 'received:74.125.82': 0.37; 'but': 0.37; 'received:google.com': 0.38; 'some': 0.38; 'received:74.125': 0.39; 'either': 0.39; "it's": 0.39; 'subject:: ': 0.39; 'to:addr:python.org': 0.39; 'did': 0.40; 'theme': 0.67; 'show': 0.67; 'have.': 0.77; 'presumably': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=+xSQdp///GSaPoy/xsKL9IESa3TQe+RF5wAMokia2nk=; b=DB90X7qYCM6I40oGN0gBRejjDjbR/S9JX8RLXfW6HUDu3O7GmY+f1Bn6jr9kQd4/4R fYvQ7zzwRdv5HRoFbLt/PJQORVVh6OU2XfLsR1iu8r3o9VqJSpZSFrIoN3Sa8uWjeDYH JVdmAmRM38KDPUfoBj/OAtEwxliyvW3J7fQk4=
MIME-Version 1.0
In-Reply-To <CAPTjJmoeAMhH2fLMhR_R9iUgceWVZAWDMUu6=E0egN8C6-TS=A@mail.gmail.com>
References <CAN1F8qXCTPKrJfMh_jNS+HWNLPfDrWr-3BvdHDJ2+eP7EaWoGw@mail.gmail.com> <CAPTjJmoeAMhH2fLMhR_R9iUgceWVZAWDMUu6=E0egN8C6-TS=A@mail.gmail.com>
Date Fri, 4 Nov 2011 10:49:39 +0000
Subject Re: SystemError when defining
From Joshua Landau <joshua.landau.ws@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2428.1320403781.27778.python-list@python.org> (permalink)
Lines 15
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1320403781 news.xs4all.nl 6870 [2001:888:2000:d::a6]:58977
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:15335

Show key headers only | 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