can't figure out syntax prob

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
 
P

python newbie

Thanks, wish I could "erase, erase" like that comedian Craig Shumaker says
and undo this post.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top