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
The 'gx' and 'mv' variables
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
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
 
Gearoid Murphy  
View profile  
 More options Aug 27 2012, 11:12 am
From: Gearoid Murphy <gearoid.p.mur...@gmail.com>
Date: Mon, 27 Aug 2012 08:12:16 -0700 (PDT)
Local: Mon, Aug 27 2012 11:12 am
Subject: The 'gx' and 'mv' variables

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?

Thanks.


 
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.
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.
Jérémie Roquet  
View profile   Translate to Translated (View Original)
 More options Aug 27 2012, 11:37 am
From: Jérémie Roquet <arkano...@gmail.com>
Date: Mon, 27 Aug 2012 17:37:51 +0200
Local: Mon, Aug 27 2012 11:37 am
Subject: Re: The 'gx' and 'mv' variables
2012/8/27 Jérémie Roquet <arkano...@gmail.com>:

> 2012/8/27 Gearoid Murphy <gearoid.p.mur...@gmail.com>:
> Its role is to handle the parsing of the Python code in a module.

Err. I mean: not the parsing per se; it handles the /result/ of the
parsing (the abstract syntax tree).

--
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.
Gearoid Murphy  
View profile  
 More options Aug 27 2012, 11:41 am
From: Gearoid Murphy <gearoid.p.mur...@gmail.com>
Date: Mon, 27 Aug 2012 08:41:09 -0700 (PDT)
Local: Mon, Aug 27 2012 11:41 am
Subject: Re: The 'gx' and 'mv' variables

Ah, I see, thanks for the insight.


 
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.
End of messages
« Back to Discussions « Newer topic     Older topic »