[Pythonmac-SIG] Select module in 10.4

Bob Ippolito bob at redivi.com
Wed Aug 10 03:30:34 CEST 2005


On Aug 9, 2005, at 3:17 PM, Kris Kopicki wrote:

> I've just installed a package that requires python on 10.4.2 Server
> and notice that is crashes on calling select.poll().
>
> I ran this on a 10.3 Server
>
>>>> import select
>>>> dir(select)
>>>>
> ['POLLERR', 'POLLHUP', 'POLLIN', 'POLLNVAL', 'POLLOUT', 'POLLPRI',
> '__doc__', '__file__', '__name__', 'error', 'poll', 'select']
>
> and this on the 10.4.2 Server
>
>>>> import select
>>>> dir(select)
>>>>
> ['__doc__', '__file__', '__name__', 'error', 'select']
>
> Is the python install on 10.4 broken? Or more to the point, anyone
> know of a way around this?

IIRC, poll is broken in Mac OS X and newer versions of Python ignore  
the implementation if it doesn't work right.  It's doing you a favor.

Whatever package you're trying to use should fall back to select if  
poll isn't available, so it's the package that is broken (or rather,  
not cross-platform).

-bob



More information about the Pythonmac-SIG mailing list