Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion The 'gx' and 'mv' variables
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jérémie Roquet  
View profile   Translate to Translated (View Original)
 More options Aug 27 2012, 11:35 am
From: Jérémie Roquet <arkano...@gmail.com>
Date: Mon, 27 Aug 2012 17:35:16 +0200
Local: Mon, Aug 27 2012 11:35 am
Subject: Re: The 'gx' and 'mv' variables
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 meaning?

_mv is the moduleVisitor currently in use. moduleVisitor is a derived
class from the standard ASTVisitor class, which implements the
“Visitor” 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¹ 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,

¹ http://docs.python.org/library/compiler.html

--
Jérémie


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.