Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!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.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'lookup': 0.09; 'message-id:@stoneleaf.us': 0.09; 'subject:skip:c 10': 0.09; '~ethan~': 0.09; 'jan': 0.12; 'ah,': 0.16; 'filename:fname piece:signature': 0.16; 'scope.': 0.16; 'skips': 0.16; 'subject:class': 0.16; 'subject:fails': 0.16; 'wrote:': 0.18; 'header:User-Agent:1': 0.23; 'mon,': 0.24; 'header:In-Reply- To:1': 0.27; 'subject:list': 0.30; "d'aprano": 0.31; 'steven': 0.31; 'class': 0.32; 'charset:us-ascii': 0.36; 'thanks': 0.36; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'received:173': 0.61; 'name': 0.63; '2015': 0.84; 'actually,': 0.84; 'ethan': 0.84; 'furman': 0.84 Date: Mon, 12 Jan 2015 22:00:27 -0800 From: Ethan Furman User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Namespace puzzle, list comprehension fails within class definition References: <54b4a3dd$0$2738$c3e8da3$76491128@news.astraweb.com> In-Reply-To: <54b4a3dd$0$2738$c3e8da3$76491128@news.astraweb.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="woEv2iXvsOKLi0pGbnmAENQ18SgWFaKNf" 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: 46 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1421128832 news.xs4all.nl 2935 [2001:888:2000:d::a6]:55663 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:83664 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --woEv2iXvsOKLi0pGbnmAENQ18SgWFaKNf Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable On 01/12/2015 08:49 PM, Steven D'Aprano wrote: > On Mon, 12 Jan 2015 12:40:13 -0800, Ethan Furman wrote: >>=20 >> [...] class name lookup skips nonlocal namespaces. >=20 > Actually, no it doesn't. > [...]=20 > The "problem" is that *functions* lookup don't include the class body i= n=20 > their scope. Ah, thanks for the correction! -- ~Ethan~ --woEv2iXvsOKLi0pGbnmAENQ18SgWFaKNf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBAgAGBQJUtLR+AAoJENZ7D1rrH75NL2MP/0ITYJctu0ERwHSLqXsPAf9y xepDkd943qVjYnogZEq/qhG6WZflyyPGetN0qktW0AaWceB/cMuasGncyBzqtxBB yu2CkGplowZzjG0BdVcwoz1oK22fe2vKlSsDtn6DIS6XnQoUQbR7enWGPEJGfGRb k+VX962NtyXcART419lUK7iTU0uUA4Cs6Pml1PB+wjVmphi5o1eMaviwsqCmOTPI whg/YqCz/XZ3CVQny6bddcdjI/VKzQeeQBPyq+tpIIelrt4Xi9/l/HQMFAm1JZ+U dcgeG85aDtcMZZZz6Tm8Ivfu7w1GY+3nYjwwekMYvb71DAzMUM7BkAW8zqjOzsO3 +9MwAzYkTU4nn2j37rbYUfIHUaNlTDvTTSilruBhXaPkM6wI8KXwQx7KCRv1aGHa Uyd7MYgwm2a9GS7FR6ui2Jmc6xWU16iM31iBavRHxt77r9MrWo+Xa5ogYuczREhG QWC4CrvU/+UDvK8dyhNch/bSRXjXwdQ9cYythRH455XAPV5Jqp6Ony9VSkNf+tlT KymDRZQTsSxJJ7DeDtK+5vmKGbjwSDScW9GaEdV5DFNHyY8lPwNg4V4bRf1KOBft CsZte7vbaVeoaLjNxlPn4XDN0nqXisRSeuzdo9AgA4jG8BwC+Y6SAddnidVXapNG M0IHVxRDnqcrOMkOtXfP =TuM6 -----END PGP SIGNATURE----- --woEv2iXvsOKLi0pGbnmAENQ18SgWFaKNf--