osdir.com
mailing list archive

Subject: Bug in ?? ..withdrawn - msg#00020

List: python.ctypes

Date: Prev Next Index Thread: Prev Next Index

Ah, damn it! I remember now. I knew I've seen this bug before.
Posted it something about a year ago. They announced ubuntu as the os with all the
bleeding edge stuff packed in and I fell for it. I'm not giving in. They never get me
to install vista.

Jürgen





-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642


Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

Re: Re: Calling a dll from Python ctypes

On 7 Apr 2006 at 13:14, Lenard Lindstrom wrote: > On 7 Apr 2006 at 18:59, Thomas Heller wrote: > > > Thinking out loud: > > > > loader = LibraryLoader(CDLL) > > libc = loader.find("c") > > libc = loader.load_version("c", "6") > > libc = loader.load("libc.so.6") > > libc = loader.load_library("/usr/lib/libc.so.6") > > libGL = loader.find("GL", RTLD_GLOBAL) > > > All these act as alternate constructors. They, and load_library, can > be class methods of CDLL, etc.. cdll becomes an instance of a new > class that translates attribute accesses to CDLL instance creation. I > try making the changes myself and submit a patch for you to play > with. > I have tried modifying the LoadLibrary and CDLL classes. The result is that calls like: dll = cdll.load("...") become dll = CDLL.load("...") This would break a lot of modules. Given that the dll = cdll.somelib usage is intended only as a shorthand for interactive use I wonder if it is worth the trouble to make these changes. If it is then I will continue. What my little sidetrip does suggest though is that CDLL instance caching should work for _load.LoadLibrary.load and kin, not just at the attribute level. The load_library method is likely the best place to implement caching. Again I am will to make the changes myself. Lenard Lindstrom <len-l@xxxxxxxxx> ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

Next Message by Date: click to view message preview

Bug in ?? (revision 2)

Start this all over :-) Hi, I am a newbie to ctypes. I have installed 0.9.3 on my linux machine and I experience strange behaviour when I'm trying to run the following lines of code. p = create_string_buffer('foo') print p.value >> 'foo' print p.raw # deadlock, nada ..kind off getting old now Just can't get rid of the feeling s.o. is laughing behind my back. Did I mention? - oses suck. Jürgen ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642

Previous Message by Thread: click to view message preview

Bug in ??

Well, well. Oses suck. Ported to linux. Ubuntu 5.1 that is. Can't even get ctypes 0.9.3 installed. I'm a complete dummy in here and stuck with 0.9.6. This should be enough to disqualify me as a tester :-) Anyway, played around with 0.9.6 a bit (BTW where is the version history of ctypes gone, lost touch somehow). Maybe this one is fixed already, maybe not... p = create_string_buffer('foo') print p.value >> 'foo' print p.raw # deadlock, nada, rien. Guess this would be an access violation on windows Jürgen ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642

Next Message by Thread: click to view message preview

Bug in ?? (revision 2)

Start this all over :-) Hi, I am a newbie to ctypes. I have installed 0.9.3 on my linux machine and I experience strange behaviour when I'm trying to run the following lines of code. p = create_string_buffer('foo') print p.value >> 'foo' print p.raw # deadlock, nada ..kind off getting old now Just can't get rid of the feeling s.o. is laughing behind my back. Did I mention? - oses suck. Jürgen ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
Sign up for updates to this mailing list. email:
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by