> I'm stuck on pp. 68-71 of "Python Programming on Win32". I tried
> to follow the
> "Implementing COM Objects with Python" but the SimpleCOMServer.py program
> doesn't seem to be working as I attempt to run it on PythonWin
> (PythonWin 2.0
> (#8, Mar 7 2001, 16:04:37) [MSC 32 bit (Intel)] on win32). There
> is no response
> to the PythonWin interactive. I try the same program in Komodo
> 1.0 and get this:
>
> File "e:\program
> files\komodo\mozilla\chrome\komodo\content\python\kdb.py",
> line 277, in _do_start
> code_ob = compile(code, debug_args[0], "exec")
> File "<string>", line 3
> import win32com.server.register
> win32com.server.register.UseCommandLine(PythonUtilities)
> ^
> SyntaxError: invalid syntax
I guess that you have mixed tabs and whitespace. In Pythonwin or Komodo,
use the "View Whitespace" option to check.
It certainly looks like there is a syntax error in your .py file, and that
is the only candidate I can see. Did you get the book samples from my
starship pages, or did you just type the code in?
Mark.
_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython