|
From: Dan L. <dl...@gm...> - 2008-09-12 21:40:10
|
On Thu, 11 Sep 2008 20:22:22 -0700, Keith Dart wrote: > On Thu, 11 Sep 2008, Frank Mori Hess wrote: > > >> Please resend your patch to me as an attachment. Putting it inline >> results in the line wrapping, etc. messing it up. I intend to apply >> it, but I don't use the python wrapper myself, so if any python users >> have criticisms of the changes you should speak up now. > > Uh oh, I actually have another heavily modified Python wrapper. :-O > > This version has: > > - more complete error reporting. > - ibask wrapper > - Faster "ask" function (write-read query). - Also works with Ines > driver and compatibility library (with a #define) - Supports the lockdev > library to keep multiple processes from stomping on > each other (in the "find" function). Hi Keith, Since my previous post, I have written *another* Python wrapper... this one is based on ctypes and also has a more useful Exception class that reports the iberr code, and short and long descriptions of the error message (the same as in your code, it seems). > Take your pick. :-) Frankly, I would vote for Keith's code!!! It is much more complete than the patch I just submitted (although mine has a few minor cleanups that it lacks, I could "patch the patch" if desired). Maybe all of us writing Python wrappers for Linux-gpib should join forces??? There is another one too... http://people.debian.org/~jordens/ gpib-devices/doc/ It seems quite complete but is very complicated. What to do? Dan |