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,