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'):
do something
if __name__ == '__main__':
func1()
but this returns the
Hari Sekhon wrote:
import re
re_regexname = re.compile('abc')
.
. various function defs
.
def func1():
...
func2()
...
def func2():
if re_regexname.match('abc'):
do something
if __name__ == '__main__':
func1()
The above clearly is not what you have. See the
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'):
do something
if __name__ == '__main__':
func1()
The above clearly
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'):
do something
if __name__ == '__main__':
func1()
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'):
do something
if __name__
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():
if re_regexname.match('abc'):
do something
if