POLL in different OSes
Lucio Torre
lucio at movilogic.com
Tue Oct 23 11:47:16 EDT 2001
At 05:54 PM 23/10/2001 +1300, Mark Rowe wrote:
>Hello,
>
> >From the interpreter under Windows:
>
>Python 2.2b1 (#25, Oct 19 2001, 11:44:52) [MSC 32 bit (Intel)] on win32
>Type "help", "copyright", "credits" or "license" for more information.
> >>> import select
> >>> select.poll
>Traceback (most recent call last):
> File "<stdin>", line 1, in ?
>AttributeError: 'module' object has no attribute 'poll'
> >>> dir(select)
>['__doc__', '__file__', '__name__', 'error', 'select']
> >>>
>
>I guess its not :)
>
>Mark Rowe
Yes, i did the same in my linux box and got:
Python 2.0.1 (#0, Jun 23 2001, 23:50:30)
[GCC 2.95.4 20010319 (Debian prerelease)] on linux2
Type "copyright", "credits" or "license" for more information.
>>> import select
>>> dir(select)
['POLLERR', 'POLLHUP', 'POLLIN', 'POLLMSG', 'POLLNVAL', 'POLLOUT',
'POLLPRI', 'POLLRDBAND', 'POLLRDNORM', 'POLLWRBAND', 'POLLWRNORM',
'__doc__', '__file__', '__name__', 'error', 'poll', 'select']
>>>
so, another question: is bsd sockets the only networking interface Windows
has? doesnt it have a win32socketlib ( :) ) or something like that?
and deeper again, (for pygame people), does the networking code from
directx use bsd sockets? or what?
danke.
More information about the Python-list
mailing list