473,320 Members | 2,097 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

IDEs for COM scripting: C# v. Python v. Iron Python v. JPython

I love the typing assist I get when using C# in VS2005 to write COM clients.

I need to write a program to automate some tasks in outlook. Givin that the
typing assist feature is very important to me, what would be the best
combination of IDE and language for COM scripting?

I was experimenting with Groovy and Eclipse and was extremely pleased to
discover that I get the typing assist with that combination. However, I'm
getting an accvio with a minimal outlook COM client. I hear great things
about Iron Python: is there a good IDE for it that has a typing assist?

Thanks,
Siegfried
Jul 5 '07 #1
6 2083
Hi!
>I love the typing assist I get when using C# in VS2005 to write COM
clients.
But this run only for static-COM-servers. Dynamic-COM-servers are not
supported by these assists.
And, all COM-servers builds with Python are dynamic-COM-server.
And also, dynamic-COM-server is a marvelous way for developpment.

@-salutations

Michel Claveau


PS : C# can use dynamic COM servers, with "late binding"

Jul 5 '07 #2
"M���������������� ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ ½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½" schrieb:
Hi!
>I love the typing assist I get when using C# in VS2005 to write COM
clients.

But this run only for static-COM-servers. Dynamic-COM-servers are not
supported by these assists.
No. The IDIspatch-interface explicitely lists what methods with what
arguments it has. So code completion is possible there as well.

Diez
Jul 5 '07 #3
Siegfried Heintze schrieb:
I love the typing assist I get when using C# in VS2005 to write COM clients.

I need to write a program to automate some tasks in outlook. Givin that the
typing assist feature is very important to me, what would be the best
combination of IDE and language for COM scripting?

I was experimenting with Groovy and Eclipse and was extremely pleased to
discover that I get the typing assist with that combination. However, I'm
getting an accvio with a minimal outlook COM client. I hear great things
about Iron Python: is there a good IDE for it that has a typing assist?
You won't get it in python. Python has no type declarations, thus the
IDE has no idea what type a name points to. This is true for IronPython
as well.

There are some other aids - for example eric (a python editor written in
python, using Qt) will have API-files generated that at least let you
choose the name of a method/property after you typed the first character.
But you should still try and see how productive one is in python. I'm
working in a Java shop, with eclipse - one of the most intimate
IDE-language-relationships imaginable. I get all the auto-completion,
refactoring and whatnot-support.

And I'd swap it for python + emacs every minute.

Diez
Jul 5 '07 #4
Can someone suggest some criterion for selecting Python, JPython or Iron
Python for COM Scripting?

I have not looked: I assume there are multiple eclipse plugins for
Python/JPython/Iron Python. Could someone recommend one? I'll also try out
eric that was mentioned previously.

I figured out my problem with Groovy/COM/Eclipse scripting: I had outlook
running in another remote desktop session and discovered that if I run my
script in the same session as I am running outlook in, it works. I assume
the situation would be the same with Python.

Since Groovy/COM/Eclipse works for this purpose, I assume JPython with
JaWin/Jacob would work too.

Thanks,
Siegfried
Jul 5 '07 #5
MC
Hi!
No. The IDIspatch-interface explicitely lists what methods with what
arguments it has. So code completion is possible there as well.
Sorry, I think different.
In VS, assists use TLB for find methods & arguments.
Dynamic-server can't have TLB.

Other way for verify : try a Makepy on a COM server write with
Python+Pywin32...

--
@-salutations

Michel Claveau
Jul 5 '07 #6
"Méta-MCI" <en**************@XmclaveauX.comwrites:
[...]
And, all COM-servers builds with Python are dynamic-COM-server.
Not true. Look for "comtypes" on this page:

http://python.net/crew/theller/ctypes/

[...]
about Iron Python: is there a good IDE for it that has a typing assist?
MS calls this "typing assist" feature IntelliSense:

http://msdn.microsoft.com//msdnmag/i...t/default.aspx

"""
The Visual Studio SDK ships with a Visual Studio Integration sample of
IronPython. This features IronPython projects to be created, syntax
coloring, debugging, and IntelliSense® in Python files and the
IronPython console. This is another example of the benefits of being a
full-fledged .NET citizen: Visual Studio support!
"""

But things are changing very quickly with IronPython ATM. If you want
to do anything with IronPython ATM, you'd be mad not to be subscribed
to the IronPython mailing list. Try reading recent messages there,
and asking there if still in doubt, what the current situation is (may
*well* have changed since that article, and in particular you're very
likely to need just the right versions of everything for this to work
-- not necessarily the latest versions).
John
Jul 6 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Link | last post by:
Hello!I am new to Python and I would like to rewrite the following code to python use to call by C program:// JPython code ======================================= import...
3
by: Link | last post by:
Dear sir, I am used to developing C program on MSVC7.0 platform. This is my first time to use Python for calling by C program. Now, it is hard to deal with the problem about extracting the...
8
by: John Salerno | last post by:
Hi all. I'm currently learning C#, and I'm also interested in learning Python (all of this just for fun, mind you), so it seems like a decent idea to want to integrate the two. But I don't quite...
6
by: ajikoe | last post by:
Hello, I have test.py: print 'hello' I compile using iron python the result is test.exe I have got error message when I tried to call test.exe telling that test.exe is not a valid win32...
2
by: asmirnov1234567890 | last post by:
Hi does anybody knows how to use JINI service from Python? Regards, Andrei
37
by: John Salerno | last post by:
I contacted my domain host about how Python is implemented on their server, and got this response: ------------------- Hello John, Please be informed that the implementation of python in our...
2
by: Casey Hawthorne | last post by:
Currently PyPy is working toward compiling to C a restricted subset of Python, called RPython. Would it be possible for PyPy to "compile" the full subset of Python by also using a lot smaller...
25
by: John Nagle | last post by:
Some faster Python implementations are under development. JPython has been around for a while, and PyPy and ShedSkin continue to move forward. It's worth thinking about what slows down Python...
3
by: mmm | last post by:
I am looking for advice on Python Editors and IDEs I have read other posts and threads on the subject and my two questions at this time are mainly about the IDLE-like F5-run facilities. While I...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.