Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > IDEs for COM scripting: C# v. Python v. Iron Python v. JPython

Reply
Thread Tools

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

 
 
Siegfried Heintze
Guest
Posts: n/a
 
      07-05-2007
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


 
Reply With Quote
 
 
 
 
Mta-MCI
Guest
Posts: n/a
 
      07-05-2007
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"



 
Reply With Quote
 
 
 
 
Diez B. Roggisch
Guest
Posts: n/a
 
      07-05-2007
"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
 
Reply With Quote
 
Diez B. Roggisch
Guest
Posts: n/a
 
      07-05-2007
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
 
Reply With Quote
 
Siegfried Heintze
Guest
Posts: n/a
 
      07-05-2007
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


 
Reply With Quote
 
MC
Guest
Posts: n/a
 
      07-05-2007
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


 
Reply With Quote
 
John J. Lee
Guest
Posts: n/a
 
      07-06-2007
"Méta-MCI" <(E-Mail Removed)> writes:
[...]
> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CPython vs. Jython/JPython Sean McCallister Python 0 04-28-2007 10:33 PM
Parsing python dictionary in Java using JPython sandip desale Python 3 05-26-2006 11:38 AM
Re: Parsing python dictionary in Java using JPython sandip desale Python 1 05-26-2006 11:02 AM
iron python exe problem ajikoe@gmail.com Python 8 12-07-2005 07:22 AM
How can I rewrite the JPython to Python? Link Python 0 09-17-2003 03:11 AM



Advertisments