is that possible to load a dynamic library?

POYEN OP Olivier (DCL) Olivier.POYEN at clf-dexia.com
Tue May 20 10:13:47 EDT 2003


Check ctypes for python on sourceforge. (google)

[Extract from tutorial]

libc=cdll.LoadLibrary('/lib/libc6.so')
printf=libc.printf

and now you can play....

HTH,

OPQ

> -----Message d'origine-----
> De : printf [mailto:print at hongkong.com]
> Envoyé : mardi 20 mai 2003 16:04
> À : python-list at python.org
> Objet : is that possible to load a dynamic library?
> 
> 
> I wonder if it is possible to load a dynamic library (*.so)  using 
> python during runtime. How?
> 
> -- 
> http://mail.python.org/mailman/listinfo/python-list
> 
-------------- next part --------------
-----------------------------------------------------------------

Ce message est confidentiel ; son contenu ne represente en aucun

cas un engagement de la part de Dexia Credit Local ou de Dexia

CLF Banque. Toute publication, utilisation ou diffusion, meme

partielle, doit etre autorisee prealablement par l'emetteur. Si

vous n'etes pas destinataire de ce message, merci d'en avertir

immediatement l'expediteur.



This message is confidential ; its contents do not constitute a

commitment by Dexia Credit Local or Dexia CLF Banque. Any

unauthorised disclosure, use or dissemination, either whole or

partial, is prohibited. If you are not the intended recipient of

the message, please notify the sender immediately.

-----------------------------------------------------------------

Consultez notre site internet www.dexia-clf.fr

La cle d'une gestion optimisee du secteur public local

-----------------------------------------------------------------


More information about the Python-list mailing list