Feb-19-2020, 07:01 AM
Hi,
I have the code
What can I do to find that error without running the code
Thanks,
Yoni
I have the code
class MainC:
def __init__(self):
self.arg1 = None
# Method One, Not working
OBJ_LIST = {}
for i in range(10):
OBJ_LIST[i] = MainC()
for i in range(10):
print(OBJ_LIST[i].arg2) # There is a error here
# Method Two, Also not working
OBJ_LIST = []
for i in range(10):
OBJ_LIST.append(MainC())
for i in range(10):
print(OBJ_LIST[i].arg2) # There is a error hereWhile I am running pylint/pyflakes/flake8 I don't get any error about attribute error.What can I do to find that error without running the code
Thanks,
Yoni
