Community: Framework mailing list archives

expert-framework@mail.odoo.com

Re: TR: openerp-gevent + pyinotify

by
Temur
- 07/29/2015 11:03:31
You're right:

$ python
Python 2.7.3 (default, Mar 13 2014, 11:03:55)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>> import select
 >>> dir(select)
['EPOLLERR', 'EPOLLET', 'EPOLLHUP', 'EPOLLIN', 'EPOLLMSG', 
'EPOLLONESHOT', 'EPOLLOUT', 'EPOLLPRI', 'EPOLLRDBAND', 'EPOLLRDNORM', 
'EPOLLWRBAND', 'EPOLLWRNORM', 'PIPE_BUF', 'POLLERR', 'POLLHUP', 
'POLLIN', 'POLLMSG', 'POLLNVAL', 'POLLOUT', 'POLLPRI', 'POLLRDBAND', 
'POLLRDNORM', 'POLLWRBAND', 'POLLWRNORM', '__doc__', '__name__', 
'__package__', 'epoll', 'error', 'poll', 'select']
 >>> import gevent.monkey
 >>> gevent.monkey.patch_all()
 >>> dir(select)
['EPOLLERR', 'EPOLLET', 'EPOLLHUP', 'EPOLLIN', 'EPOLLMSG', 
'EPOLLONESHOT', 'EPOLLOUT', 'EPOLLPRI', 'EPOLLRDBAND', 'EPOLLRDNORM', 
'EPOLLWRBAND', 'EPOLLWRNORM', 'PIPE_BUF', 'POLLERR', 'POLLHUP', 
'POLLIN', 'POLLMSG', 'POLLNVAL', 'POLLOUT', 'POLLPRI', 'POLLRDBAND', 
'POLLRDNORM', 'POLLWRBAND', 'POLLWRNORM', '__doc__', '__name__', 
'__package__', 'error', 'select']

Thanks Manuel

On 29/07/15 18:57, Manuel Vázquez wrote:
> Ah! This is how:
>
> >>> gevent.monkey.patch_all()
> >>> select.poll
> ---------------------------------------------------------------------------
> AttributeError                            Traceback (most recent call last)
>   in ()
> ----> 1 select.poll
>
> AttributeError: 'module' object has no attribute 'poll'
>
> _______________________________________________
> Mailing-List: https://www.odoo.com/groups/community-framework-62
> Post to: mailto:expert-framework@mail.odoo.com
> Unsubscribe: https://www.odoo.com/groups?unsubscribe
>