Message from discussion
The 'gx' and 'mv' variables
Received: by 10.224.186.143 with SMTP id cs15mr7116873qab.3.1346081733629;
Mon, 27 Aug 2012 08:35:33 -0700 (PDT)
X-BeenThere: shedskin-discuss@googlegroups.com
Received: by 10.224.183.3 with SMTP id ce3ls5706196qab.4.gmail; Mon, 27 Aug
2012 08:35:33 -0700 (PDT)
Received: by 10.224.209.202 with SMTP id gh10mr7103389qab.2.1346081733216;
Mon, 27 Aug 2012 08:35:33 -0700 (PDT)
Received: by 10.224.209.202 with SMTP id gh10mr7103387qab.2.1346081733151;
Mon, 27 Aug 2012 08:35:33 -0700 (PDT)
Return-Path: <arkano...@gmail.com>
Received: from mail-qc0-f178.google.com (mail-qc0-f178.google.com [209.85.216.178])
by gmr-mx.google.com with ESMTPS id k34si3434978qcz.1.2012.08.27.08.35.33
(version=TLSv1/SSLv3 cipher=OTHER);
Mon, 27 Aug 2012 08:35:33 -0700 (PDT)
Received-SPF: pass (google.com: domain of arkano...@gmail.com designates 209.85.216.178 as permitted sender) client-ip=209.85.216.178;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of arkano...@gmail.com designates 209.85.216.178 as permitted sender) smtp.mail=arkano...@gmail.com; dkim=pass header...@gmail.com
Received: by qchj9 with SMTP id j9so2699925qch.9
for <shedskin-discuss@googlegroups.com>; Mon, 27 Aug 2012 08:35:33 -0700 (PDT)
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
:content-type:content-transfer-encoding;
bh=M3m0wMNTiKVOPOQje8JJhxsvPvkbZoiWf7dRtbP938M=;
b=U6ms0L11uDxXtc0X8glYHVFOKRxJPdmUZG6+UPzdrWmhc9w3RByyjwH0kDbQNNvAvm
PPyO/C1awFLDPbm5IVqZXM3ytHaJ/QqWdHY9j+JwpsmPQoIzA7dm4vwAETQgnSypJswE
vBkl1psDb3lV4Gq4LO1JvsFKCVQNtcnq4fYqEWwXwpE0HksBx9UlMEaXXQJ+SAPZmj03
itbCBRvEjSXfBkaAY3ro8YuE4RGtJuljXaCJelnXqeXCBzVNcsEppjGEGlwDVltshCz2
Tf07+6F6spQMcwHjdtFktUUmScXc6K4tR2aBI9qimGH8D62csKfZTTiX4jtEGoAwgTE6
BQLg==
Received: by 10.224.42.17 with SMTP id q17mr9194977qae.11.1346081732882; Mon,
27 Aug 2012 08:35:32 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.49.58.225 with HTTP; Mon, 27 Aug 2012 08:35:16 -0700 (PDT)
In-Reply-To: <5f7449d5-3ad2-4ef8-91aa-f14b0a4d9f2b@googlegroups.com>
References: <5f7449d5-3ad2-4ef8-91aa-f14b0a4d9f2b@googlegroups.com>
From: =?UTF-8?B?SsOpcsOpbWllIFJvcXVldA==?= <arkano...@gmail.com>
Date: Mon, 27 Aug 2012 17:35:16 +0200
Message-ID: <CAFOazAN2L4uCudeKo-Q7uE6hmhL+S5LpUR+yFsWVmo3zn8_...@mail.gmail.com>
Subject: Re: The 'gx' and 'mv' variables
To: shedskin-discuss@googlegroups.com
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Hi Gearoid,
2012/8/27 Gearoid Murphy <gearoid.p.mur...@gmail.com>:
> shared.py contains variables called _gx and _mv, I see references to them
> scattered across the code, can anyone provide more context on their meani=
ng?
_mv is the moduleVisitor currently in use. moduleVisitor is a derived
class from the standard ASTVisitor class, which implements the
=E2=80=9CVisitor=E2=80=9D design pattern. Its role is to handle the parsing=
of the
Python code in a module. You may want to read the documentation of the
compiler module=C2=B9 to understand how it works.
_gx is the globalInfo. Its attributes are very loosely related. Well,
one could say they are not related at all, actually ;-) See it as a
bunch of global variables.
Hope this helps, best regards,
=C2=B9 http://docs.python.org/library/compiler.html
--=20
J=C3=A9r=C3=A9mie