Paul Rubin :
> Marko Rauhamaa writes:
>> I have successfully done event-driven I/O using select.epoll() and
>> socket.socket().
>
> Sure, but then you end up writing a lot of low-level machinery that
> packages like twisted take care of for you.
Certainly. It would be nice if the stdlib protocol
Marko Rauhamaa writes:
> I have successfully done event-driven I/O using select.epoll() and
> socket.socket().
Sure, but then you end up writing a lot of low-level machinery that
packages like twisted take care of for you.
--
https://mail.python.org/mailman/listinfo/python-list
Paul Rubin :
> Event-driven i/o in Python 2.x was generally done with callback-based
> packages like Twisted Matrix (www.twistedmatrix.com). In Python 3
> there are some nicer mechanisms (coroutines) so the new asyncio
> package may be easier to use than Twisted. I haven't tried it yet.
I have su
Ari King writes:
> I'd like to query two (or more) RESTful APIs concurrently. What is the
> pythonic way of doing so? Is it better to use built in functions or
> are third-party packages? Thanks.
The two basic approaches are event-based asynchronous i/o (there are
various packages for that) and t
On Thu, Feb 12, 2015 at 10:37 AM, Ari King wrote:
> Hi,
>
> I'd like to query two (or more) RESTful APIs concurrently. What is the
> pythonic way of doing so? Is it better to use built in functions or are
> third-party packages? Thanks.
Have a look at asyncio (new in Python 3.4, available for 3