In src/webprofiles/__init__.py I have
def match(string)
Now how can I make a call to this match from `src/python.py, which contains
from webprofiles import *
for x in text
a= webprofiles.match(x)
Its giving me an error
NameError: global name 'webprofiles' is not defined
When you use from import form, you must call function without module prefix.
just call the functions and attributes via their names.
but i suggest to DO NOT use wildcard(‘*’) imports.
use this instead: