Re: Code execution in imported modules

2008-05-29 Thread Casey McGinty
On Thu, May 29, 2008 at 2:43 PM, Eric Wertman <[EMAIL PROTECTED]> wrote: > So I'm working on some file parsing and building up a stack of regular > expressions that I need to use. I was thinking of dropping them in an > external module. I was wondering.. if I put them in a file called > regex.py

Re: Code execution in imported modules

2008-05-29 Thread Hans Nowak
Eric Wertman wrote: So I'm working on some file parsing and building up a stack of regular expressions that I need to use. I was thinking of dropping them in an external module. I was wondering.. if I put them in a file called regex.py like so : import re re1 = ".. re2 = ".. and then do: rg

Code execution in imported modules

2008-05-29 Thread Eric Wertman
So I'm working on some file parsing and building up a stack of regular expressions that I need to use. I was thinking of dropping them in an external module. I was wondering.. if I put them in a file called regex.py like so : import re re1 = ".. re2 = ".. and then do: rgx1 = re.compile(re1) r