[stdlib-sig] futures - a new package for asynchronous execution
jnoller at gmail.com
Sat Nov 7 01:32:04 CET 2009
On Fri, Nov 6, 2009 at 7:23 PM, Antoine Pitrou <solipsis at pitrou.net> wrote:
> Le vendredi 06 novembre 2009 à 19:09 -0500, Jesse Noller a écrit :
>> > Have you thought at looking at Twisted and Deferred objects?
>> > What's the point of starting from scratch when an existing project has a
>> > well-known and well-established API?
>> Personally; I have. I don't prefer them, but that's my personal taste.
> The Twisted Deferred object is a quasi-standard when doing asynchronous
> programming in Python.
> The only seriously competing approach AFAICT is generator-based syntaxes
> (which Twisted also provides on top of Deferreds by the way).
> Inventing a third idiom just for taste reasons doesn't sound very
> reasonable. Of course, if the third idiom turns out *really* better in
> terms of expressiveness then why not.
I just looked at the API and idioms outlined and they seem clean and
simpler than other approaches. I also don't personally consider this
to be a "module" in it's own right, it's a light(ish) API on top of
threading and multiprocessing.
I'd gladly add this API (or some flavor of it) into multiprocessing,
as I do see it as a logical extension to the API itself. Just like
multiprocessing has pool/etc
More information about the stdlib-sig