Python Binary and Windows

P

peetm

Hi.

I'd like to compile (?) the DiffLib Python code into a binary form that can
be called by other Windows apps - like, I'd like to compile it into a DLL.

Is this possible?

Many thanks!
 
D

Diez B. Roggisch

peetm said:
Hi.

I'd like to compile (?) the DiffLib Python code into a binary form that
can be called by other Windows apps - like, I'd like to compile it into a
DLL.

Is this possible?

Not so easy. Better install WinDiff. If you really have to do it, elmer will
be of use for you.

http://www.python.org/moin/elmer

But it will still be far from being trivial.
 
A

aurora

Thanks for making me aware of the difflib module. I don't know there is
such cool module exists.

You can make it available to other Windows program as a COM object. The
win32 api should be all you need. It might be slightly challenging because
some parameters are list of strings which might need a little work to
translate into COM parameters.
 
F

Fredrik Lundh

peetm said:
I'd like to compile (?) the DiffLib Python code into a binary form that can
be called by other Windows apps - like, I'd like to compile it into a DLL.

Is this possible?

you can link your DLL (or application) against the Python DLL, and use
the Python API to pass data from C/C++ to Python, and back again.

for details, see the "embedding" sections in

http://docs.python.org/api/api.html

</F>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,219
Messages
2,571,117
Members
47,730
Latest member
scavoli

Latest Threads

Top