How does python call OS?

Gary Herron gherron at islandtraining.com
Sun Sep 14 11:03:12 EDT 2008


Siegfried Heintze wrote:
> I just finished reading a chapter in "Python Programming on Win32" and tried 
> out the pythonwin scribble application. I'm not sure if I got it right 
> because I could not open a new document. I tried to download the source code 
> as referenced in the chm file but it is corrupted. I cut and pasted from my 
> softcopy of the book.
>
> I see the next sub-chapter on wxWindows for python and the previous 
> sub-chapter on TK. This is looking a lot like other scripting languages 
> (such as perl and groovy and even java). Can python call anything directly 
> or does someone have to write a DLL in C/C++ that calls the function first?
> Thanks!
> Siegfried

See the ctypes module for a method of calling any C callable function in 
and DLL.

Gary Herron




More information about the Python-list mailing list