Re: [ctypes-users] handling a (python) list to fit in a char** argument
Brought to you by:
theller
From: LukenShiro <luk...@ng...> - 2010-12-11 19:37:50
|
Il giorno Sat, 11 Dec 2010 09:24:50 -0800 "Mark Tolonen" <met...@gm...> ha scritto: > To convert your list of strings array, use: > > def convert_to_ptr_string(paramname): > return (c_char_p * len(paramname))(*paramname) > > and pass the return value of this function directly to your function > that takes POINTER(c_char_p). Perfect, I tried different combinations for some hours, but I had not tried this one, yet ;) Thank you very much!!! Best regards. -- GNU/Linux * Slackware64 current LU #210970 SU #12583 LM #98222/#412913 |