[stdlib-sig] futures - a new package for asynchronous execution
solipsis at pitrou.net
Sat Nov 7 01:23:53 CET 2009
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.
More information about the stdlib-sig