P
python newbie
Can someone please tell me know what is wrong the code below. Whether I try
to just execute this class definition in IDLE, or include in a py file that
I attempt to run with python.exe, I get the error at the bottom.
In case this formatting gets messed up after posting, the carrot is pointing
at the second parenthesis.
I saw in Quick Python book, that I can define an __init__ function with more
than argument.
Thanks
-------------
class FileGroup:
sourceDir = ''
destinDir = ''
frequency = 1
recursive = False
def __init__(self, fg)
sourceDir = getSourceDir(fg)
destinDir = getDestinDir(fg)
frequency = getFrequency(fg)
recursive = getRecursive(fg)
---------
File "OregonBackup.py", line 23
def __init__(self,fg)
^
SyntaxError: invalid syntax
to just execute this class definition in IDLE, or include in a py file that
I attempt to run with python.exe, I get the error at the bottom.
In case this formatting gets messed up after posting, the carrot is pointing
at the second parenthesis.
I saw in Quick Python book, that I can define an __init__ function with more
than argument.
Thanks
-------------
class FileGroup:
sourceDir = ''
destinDir = ''
frequency = 1
recursive = False
def __init__(self, fg)
sourceDir = getSourceDir(fg)
destinDir = getDestinDir(fg)
frequency = getFrequency(fg)
recursive = getRecursive(fg)
---------
File "OregonBackup.py", line 23
def __init__(self,fg)
^
SyntaxError: invalid syntax