discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] PowerMate and Contour ShuttlePRO


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] PowerMate and Contour ShuttlePRO
Date: Wed, 18 May 2005 13:59:09 -0700
User-agent: Mutt/1.5.6i

On Wed, May 18, 2005 at 03:56:55PM -0400, cswiger wrote:
> That's one more thing that breaks in python2.4 (2.3 issues the
> FutureWarning about returning positive values for numbers over
> sys.maxint)
> 
> powermate.py:
> 
>     def _open_device(self, filename):
>         try:
>             self.handle = os.open(filename, os.O_RDWR)
>             if self.handle < 0:
>                 return False
> 
>             # read event device name
>             name = fcntl.ioctl(self.handle, 0x80ff4506, chr(0) * 256)
>             name = name.replace(chr(0), '')
> 

Thanks Chuck.

We probably just need a single python function that takes these hex
constants and conditionally converts them to negative ints.

Thanks,
Eric




reply via email to

[Prev in Thread] Current Thread [Next in Thread]