I have a situation where there is a pyparsing parser defined in a module
that almost fits my needs exactly.  However I would need to change some
of the parse actions to fit my needs.  If I import the module and then
proceed to change objects in it, that would affect everywhere in my code
that uses that module directly (if that makes sense).  From my informal
testing, it appears I can do this:

from stockmodule import *

somestage.setParseAction(myownfunction)

without actually changing stockmodule.somestage.  In a sense I've now
"inherited" all the objects from that module, right?

Am I thinking correctly about this?

Michael


--------------------
BYU Unix Users Group 
http://uug.byu.edu/ 

The opinions expressed in this message are the responsibility of their
author.  They are not endorsed by BYU, the BYU CS Department or BYU-UUG. 
___________________________________________________________________
List Info: http://uug.byu.edu/mailman/listinfo/uug-list

Reply via email to