Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.070 X-Spam-Evidence: '*H*': 0.87; '*S*': 0.01; 'bug.': 0.09; 'cc:addr :python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'lehmann': 0.16; 'wrote:': 0.18; 'commit': 0.19; 'seems': 0.21; 'issue.': 0.22; 'cc:addr:python.org': 0.22; 'looks': 0.24; 'cc:2**0': 0.24; 'tracker': 0.26; 'subject:/': 0.26; 'header:In-Reply-To:1': 0.27; 'fixed': 0.29; 'am,': 0.29; 'robert': 0.30; 'message-id:@mail.gmail.com': 0.30; '13,': 0.31; 'fri,': 0.33; 'agree': 0.35; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'bare': 0.84; 'dict,': 0.84; 'dispatching': 0.84; 'ian,': 0.84; 'ps.': 0.84; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=Tdv62X1II5h3QpXK4hyjNbqMtH5Ujy0VD78i7KfUr4M=; b=amJ1lsflj4MFMCZf5aC0RkxQUOvXcZUsRbrQevE+HpWQgvVK2MRxwnhwUCwkdPMjoL Ur9toUbIEnBqKA0wXC930pOFGTwNZWiqDXPnScY/g+fIS1uCAancTPwn7dzqHnQH/Nqz BlBMOswr+0pabqAbYF/CBFu8TMhspFC2RNHYIWT4+FAd47iRJzQ562siAP0nUlrXIggf 8vinTTQw1ovAnRWkA83IcbKKeRvEeem3b/Rq8OsPd+LEfVevw18KZsE1/aGEuC3Voie/ czha3G8MG3+a8VUiHOarxLK5P2sHxhBruTpI7rvYZONdCpg20sP5hRA3+5/uLyve+5Is qD1A== MIME-Version: 1.0 X-Received: by 10.58.195.130 with SMTP id ie2mr46974476vec.3.1402602473556; Thu, 12 Jun 2014 12:47:53 -0700 (PDT) In-Reply-To: References: Date: Fri, 13 Jun 2014 05:47:53 +1000 Subject: Re: Asymmetry in globals __getitem__/__setitem__ From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 10 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1402602481 news.xs4all.nl 2951 [2001:888:2000:d::a6]:39653 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:73235 On Fri, Jun 13, 2014 at 4:18 AM, Robert Lehmann wrote: > PS. I found a 3.3.x commit (e3ab8aa) which fixed the LOAD_GLOBAL opcode to > support other types than dict, but STORE_GLOBAL seems to use bare > PyDict_SetItem instead of dispatching to PyObject_SetItem. > This looks like something for a tracker issue. I agree with Ian, seems like a bug. ChrisA