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


Groups > comp.lang.python > #111228

Re: __qualname__ exposed as a local variable: standard?

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From eryk sun <eryksun@gmail.com>
Newsgroups comp.lang.python
Subject Re: __qualname__ exposed as a local variable: standard?
Date Sat, 9 Jul 2016 18:52:33 +0000
Lines 9
Message-ID <mailman.155.1468090401.2295.python-list@python.org> (permalink)
References <379ac9d7-f68e-4e36-bb55-ca8b1887962d@googlegroups.com> <CACL+1asshVxiActQCx22MaVyfZCThuv3Eq_mysDqQsmTich_RQ@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de t/pLjFgOCogrGmXF9zmpsAw/YljFBA6u0a7S48OkMmlQ==
Return-Path <eryksun@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.041
X-Spam-Evidence '*H*': 0.92; '*S*': 0.00; 'undocumented': 0.09; '2016': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:variable': 0.16; 'wrote:': 0.16; 'pass': 0.22; 'am,': 0.23; 'sat,': 0.23; 'implemented': 0.24; 'header:In-Reply-To:1': 0.24; 'message-id:@mail.gmail.com': 0.27; 'defining': 0.27; 'class.': 0.30; 'skip:_ 10': 0.32; 'noticed': 0.32; 'class': 0.33; '(for': 0.34; 'received:google.com': 0.35; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'detail': 0.38; 'to:addr:python.org': 0.40; "you'll": 0.61; 'information': 0.63; 'jul': 0.72
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=mf1V4JLXYLHZHYiYLuyJ8UDU5hLsAgdl7olPpz+pTYE=; b=exx5/WKsbI/EE5hEdydlIf48X9LZk1z5zItKdb+m89rm+YXm59EuKb4EH+lEei06sB y2L23uhKnYe1dwt+nvGvKlSC2xAC94d/fPz5kaZd7zmjuLSSBDIe8hSKhvGA/1yIDU4w MnAkMWbIdxoXH2ikLk3rB4wqwZm0CO7Pm2+HbKCu7sqJQwY5xTCnRKfJsX00yDy+S1di qFO0jSi4fTk+9pIVzAcX5TIB3lxht0f/1ob77uEfiACuTwwIeL07dOGIFZHhB/Ti6LK+ ubfEptXsstGjczJvpkUZ4sVtu8ngyEyVzlHTss6rquuL7tYKkckbZ5OWayYlc7ffBf07 jkIQ==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=mf1V4JLXYLHZHYiYLuyJ8UDU5hLsAgdl7olPpz+pTYE=; b=IQgHfVwbZ2+PXIMxYO8D+6cp3Ldg1FllYS8IKOIjpzPnyd+B74CIv8V52cGpdrYR7n FqSLmrHcFob9eWP20M5dUTNlSR6V18VDv8owLkoimpw/1H8V00aGNnoCJ6ZlZHLEhiBB Ev1nHOZzjLDKt3nawNuMNAIjWxu+POE0ZIGd2QRA9muVVDD3wyihO9WAbggp9N5tmiPW FhObR+v7GLEadtfu8higog2a7Szu6k4eqWmw7o6tsAKK6ZB6Ms86dQ63wbhVPdFHBBwv Oavv+v4ofk2qzkApcb0vevh8WUAsTivuajXcKebXsZqCbfdyIvoQDMBIGwQdkSecPTit hLaA==
X-Gm-Message-State ALyK8tLO+DH8O3q6IXTBwhPX0ITqHj2jwEc4yxbRIae0S/96ndXTtn+uH3htZJvxtpW3/5jvbZcNHp4FH6wZzA==
X-Received by 10.36.65.28 with SMTP id x28mr3726222ita.16.1468090392627; Sat, 09 Jul 2016 11:53:12 -0700 (PDT)
In-Reply-To <379ac9d7-f68e-4e36-bb55-ca8b1887962d@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.22
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <CACL+1asshVxiActQCx22MaVyfZCThuv3Eq_mysDqQsmTich_RQ@mail.gmail.com>
X-Mailman-Original-References <379ac9d7-f68e-4e36-bb55-ca8b1887962d@googlegroups.com>
Xref csiph.com comp.lang.python:111228

Show key headers only | View raw


On Sat, Jul 9, 2016 at 4:08 AM,  <carlosjosepita@gmail.com> wrote:
>
> I noticed __qualname__ is exposed by locals() while defining a class.

This is an undocumented implementation detail used to pass this
information to the metaclass. You'll also see __module__ and, if the
class has a docstring, __doc__. For CPython, this is implemented in
the functions compiler_class (for __module__ and __qualname__) and
compiler_body (for __doc__), which you'll find in Python/compile.c.

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


Thread

__qualname__ exposed as a local variable: standard? carlosjosepita@gmail.com - 2016-07-08 21:08 -0700
  Re: __qualname__ exposed as a local variable: standard? eryk sun <eryksun@gmail.com> - 2016-07-09 18:52 +0000

csiph-web