Calling C from Python

{-- Rot13 - Hateme ungrzr2 at ubatxbat.pbz
Sun Feb 25 03:27:48 CET 2001


rich_somerfield at tertio.com (Rich Somerfield) wrote in
<dE6k6.30366$mO6.567706 at news6-win.server.ntlworld.com>: 

>Hi,
>I have written a Game Engine in Python (main allow simulation of Board
>Games using a config file as the definition of the game). The problem
>is, is that the AI section is too slow.  As the code needs to be generic
>(e.g. cant specialise as the game type etc... is unknown until runtime -
>from config file), i have been unable to optimise the code further.
>

I just found this dl module in python manual. I think it
is need for python2. I am very excited about this function!
It basically let you dynamically load a library and use it!
It is a unix module.

So no wrapper is needed for simple C function access. I 
waited it for so long!

Thank you very much for this module!



More information about the Python-list mailing list