Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > COM interface to the Python interpreter

Reply
Thread Tools

COM interface to the Python interpreter

 
 
Christian Knoblauch
Guest
Posts: n/a
 
      07-21-2003
Hello all,

under Win32 it is possible to use Python as a scripting language inside ASP
pages (win32lib package), so there must be a COM interface to the Python
interpreter.

I like to use this interface instead of writing my own COM server to invoke
Python scripts from COM aware languages, unfortunately i can not find the
type-library for this interface.

Can one provide this information (perhaps with an litle example) ?

Thanks in advance !

By,
Christian


 
Reply With Quote
 
 
 
 
Paul Rudin
Guest
Posts: n/a
 
      07-21-2003
>>>>> "Christian" == Christian Knoblauch <> writes:

> Hello all, under Win32 it is possible to use Python as a
> scripting language inside ASP pages (win32lib package), so there
> must be a COM interface to the Python interpreter.



> I like to use this interface instead of writing my own COM
> server to invoke Python scripts from COM aware languages,
> unfortunately i can not find the type-library for this
> interface.


I think there's a possible misconception floating around here... the
libary code to support the implementation of com servers in python is
not of itself a com server and hence has no type library.

> Can one provide this information (perhaps with an litle example)
> ?


There is code for a "hello world" com server in the win32com
documentation - see
<http://www.python.org/windows/win32com/QuickStartServerCom.html>. There
are a couple of other examples in site-packages/win32com/demos
(assuming you've installed the win32com stuff).
 
Reply With Quote
 
 
 
 
Achim Domma
Guest
Posts: n/a
 
      07-21-2003
Hi Christian,

> under Win32 it is possible to use Python as a scripting language inside

ASP
> pages (win32lib package), so there must be a COM interface to the Python
> interpreter.
>
> I like to use this interface instead of writing my own COM server to

invoke
> Python scripts from COM aware languages, unfortunately i can not find the
> type-library for this interface.


I think you are mixing something. To be available as scripting language
inside ASP, there has to be a special interface, but it's not a 'simple'
IDispatch based interface. You can look at the documentation of the Windows
Scripting Host on how to use it in your own apps. Then you can automate your
App with all installed scripting languages.
If you would give us more details about what you want to do, one could
answer more helpfully.

regards,
Achim


 
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
Python embedded interpreter: how to initialize the interpreter ? ycollet@freesurf.fr Python 3 01-03-2007 01:00 AM
Access to sys.argv when python interpreter is invoked in some modes like 'python -c "command"' poggle.themammal@gmail.com Python 2 08-20-2006 08:31 PM
Re: Python interpreter in Basic or a Python-2-Basic translator. rrr@ronadam.com Python 0 05-02-2005 01:48 PM
Python interpreter in Basic or a Python-2-Basic translator. Engineer Python 6 05-01-2005 10:16 PM
static program including python interpreter + dynamic python extensions Tim Fuehner Python 0 12-08-2003 01:27 PM



Advertisments