Hari Sekhon wrote:
> Bruno Desthuilliers wrote:
>
>>Hari Sekhon wrote:
>>
>>
>>>I've got some code as follows:
>>>
>>>import re
>>>re_regexname = re.compile('abc')
>>>
>>>.
>>>. various function defs
>>>.
>>>
>>>def func1():
>>> ...
>>> func2()
>>> ...
>>>
>>>def func2():
>>>
Bruno Desthuilliers wrote:
Hari Sekhon wrote:
I've got some code as follows:
import re
re_regexname = re.compile('abc')
.
. various function defs
.
def func1():
...
func2()
...
def func2():
if re_regexname.match('abc'):
if __name__ == '__main__':
Hari Sekhon wrote:
> I've got some code as follows:
>
> import re
> re_regexname = re.compile('abc')
>
> .
> . various function defs
> .
>
> def func1():
>...
>func2()
>...
>
> def func2():
>if re_regexname.match('abc'):
>
>
> if __name__ == '__main__':
>
Diez B. Roggisch wrote:
Hari Sekhon wrote:
import re
re_regexname = re.compile('abc')
.
. various function defs
.
def func1():
...
func2()
...
def func2():
if re_regexname.match('abc'):
if __name__ == '__main__':
func1()
The above clearly is not what y
Hari Sekhon wrote:
> import re
> re_regexname = re.compile('abc')
>
> .
> . various function defs
> .
>
> def func1():
> ...
> func2()
> ...
>
> def func2():
> if re_regexname.match('abc'):
>
>
> if __name__ == '__main__':
> func1()
The above clearly is not what you have. See th
I've got some code as follows:
import re
re_regexname = re.compile('abc')
.
. various function defs
.
def func1():
...
func2()
...
def func2():
if re_regexname.match('abc'):
if __name__ == '__main__':
func1()
but this returns the Traceback:
UnboundLoc