[Pythonmac-SIG] poll() on OSX 10.3.9 with python2.5b2

Bob Ippolito bob at redivi.com
Mon Jul 31 19:50:51 CEST 2006


On Jul 31, 2006, at 10:18 AM, Dethe Elza wrote:

> Norman Khine wrote:
>> Hello,
>> I need to use the 'select' module in python, but get an error on the:
>>
>> Python 2.5b2 (r25b2:50512, Jul 31 2006, 15:01:51)
>> [GCC 3.3 20030304 (Apple Computer, Inc. build 1640)] on darwin
>> Type "help", "copyright", "credits" or "license" for more  
>> information.
>>
>>>>>>>> import select
>>>>>>>> dir(select)
>>>>>
>> ['__doc__', '__file__', '__name__', 'error', 'select']
>>
>
> Hi Norman,
>
> Did you build your own python or use a pre-built one?
>
> It works for me on both 2.4.3 and 2.5b2, unless I'm missing  
> something in
> what you're asking:
>
> Python 2.4.3 Universal on Intel:
> $ python -c "import select;print dir(select)"
> ['POLLERR', 'POLLHUP', 'POLLIN', 'POLLNVAL', 'POLLOUT', 'POLLPRI',
> 'POLLRDBAND', 'POLLRDNORM', 'POLLWRBAND', 'POLLWRNORM', '__doc__',
> '__file__', '__name__', 'error', 'poll', 'select']
>
> Python 2.5b2 Universal on Intel:
> $ python -c "import select; print dir(select)"
> ['POLLERR', 'POLLHUP', 'POLLIN', 'POLLNVAL', 'POLLOUT', 'POLLPRI',
> 'POLLRDBAND', 'POLLRDNORM', 'POLLWRBAND', 'POLLWRNORM', '__doc__',
> '__file__', '__name__', 'error', 'poll', 'select']

Python pre-2.5 detects for the correctness of poll() at configure time.
Python 2.5+ detects for the correctness of poll() at import time.

It doesn't matter if you built it yourself or not, all that matters  
is that your poll() syscall works correctly. This should be the case  
on 10.4.

-bob



More information about the Pythonmac-SIG mailing list