Re: [Python-Dev] Extension to dl module to allow passing strings from native function

2005-08-16 Thread Senko Rasic
On 8/13/05, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > Are you aware of the ctypes module? > > http://starship.python.net/crew/theller/ctypes/ I didn't know about ctypes, thanks for the pointer. It definitely has much more functionality (although it's more complex and a whole new module) than

Re: [Python-Dev] Extension to dl module to allow passing strings from native function

2005-08-13 Thread Martin v. Löwis
Senko Rasic wrote: > Thoughts, comments? Could this be put in standard module, does it make > sense, etc? Are you aware of the ctypes module? http://starship.python.net/crew/theller/ctypes/ Regards, Martin ___ Python-Dev mailing list Python-Dev@python.

[Python-Dev] Extension to dl module to allow passing strings from native function

2005-08-12 Thread Senko Rasic
Hi all, recently I've tried to use dl module functionality to interface with external C function. (It was a quick hack so I didn't want to write wrapper code). To my dismay I learned that call method doesn't allow passing data by reference (since strings are immutable in python) - but passing poin