Oct-12-2018, 03:27 PM
(Oct-12-2018, 02:21 PM)tjnichols Wrote: I must be missing something because I've done as you instructed.
from a import A class B(A) def bar(self): print('B.bar')and this is the error I get. I also tried copying yours - still nada.
Is there a plugin I might be missing?
Error:C:\Python365\python.exe C:/LearningEnv/LearningEnv/10/splitting_a_module_into_multiple_files/TJN_Splitting_Module/Theif_of_time.py File "C:/LearningEnv/LearningEnv/10/splitting_a_module_into_multiple_files/TJN_Splitting_Module/Theif_of_time.py", line 4 class B(A) ^ SyntaxError: invalid syntax Process finished with exit code 1
Again - thanks for your help!
The error explains what the issue is.
class B(A)
is a syntax error. You need a colon at the end of that line.