StarTeam object causes interpreter bug
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
i try to use python to access the StarTeam COM
interface thru automation (StarTeam is a source-control
system: http://www.borland.com/starteam/\). i do the
following:
import win32com.client
from win32com.client import Dispatch
f = Dispatch('StarTeam.StServerFactory')
s = f.Create('<server>', <port>)
at this point, the interpreter seems to break. anything i
write (and i mean *anything*) results in
File "<stdin>", line 1
dir()
^
SyntaxError: invalid syntax
this behavior has been observed both in Python 2.3 with
the appropriate win32all extensions and in ActivePython
2.2.
Logged In: YES
user_id=587593
When I do something similar I enter
s = f.Create('<server>', <port>)
and get
Traceback ( File "<interactive input>", line 1
s = f.Create('<server>', <port>)
^
SyntaxError: invalid syntax (the caret is under the < before
ports)
which is what I'd expect, as the < is a relational operator
expecting a left argument as well as a right.
Or did you actually type something different than what you
posted?
Logged In: YES
user_id=853573
yes, sorry. <server> must be replaced with the address of the
StarTeam server and <port> with the port number. i didn't
want to post the values i used, but should have used a
placeholder.
so it's something like this:
s = f.Create('foobar', 49201)
if that helps, the problem only occurs if i use the python
interpreter (python.exe) and NOT with pythonwin.
Logged In: YES
user_id=587593
I recommend continuing this discussion outside the SF
tracker. Please e-mail me (Bob Gailer
<bgailer@alum.rpi.edu>) (or python-list@python.org) an exact
copy of your interpretive session.