これを取り除く方法はNameError
?
main.py
from com.domain.model import Employee
e1 = Employee("")
model.py
class Person(object):
def __init__(self,fname):
setfname(fname)
def setfname(fname): self._fname = fname
class Employee(Person):
def __init__(self,fname): super(Employee,self).__init__(fname)
NameError: global name 'setfname' is not defined
main.py
com/
--domain/
----model.py