Skip to main content
added 16 characters in body
Source Link
Martijn Pieters
  • 1.1m
  • 325
  • 4.2k
  • 3.4k

When you put in DFA.init()DFA.__init__(), you're calling the init__init__ method for the entire module (I don't even know what that is defined as). You should use DFA.DFA.init()DFA.DFA.__init__(), which refers to the init__init__ method of the DFADFA class within DFA.pyDFA.py, or use:

from DFA import *
DFA.__init__()

When you put in DFA.init(), you're calling the init method for the entire module (I don't even know what that is defined as). You should use DFA.DFA.init(), which refers to the init method of the DFA class within DFA.py, or use:

from DFA import *
DFA.__init__()

When you put in DFA.__init__(), you're calling the __init__ method for the entire module (I don't even know what that is defined as). You should use DFA.DFA.__init__(), which refers to the __init__ method of the DFA class within DFA.py, or use:

from DFA import *
DFA.__init__()
Source Link

When you put in DFA.init(), you're calling the init method for the entire module (I don't even know what that is defined as). You should use DFA.DFA.init(), which refers to the init method of the DFA class within DFA.py, or use:

from DFA import *
DFA.__init__()