
On Wed, May 6, 2009 at 4:02 PM, Aahz <aahz@pythoncraft.com> wrote:
On Wed, May 06, 2009, yoav glazner wrote:
#now we need the value that foo returned print value #this would be blocking untill foo is done! </pycode>
This feature should provide a way to increase performance when possible with simple syntax.
Please provide more explanation for why the currently available features are insufficient. Note that what you're asking for would change the semantics of Python at a very deep level and will almost certainly be rejected in its present form. -- Aahz (aahz@pythoncraft.com) <*> http://www.pythoncraft.com/
"It is easier to optimize correct code than to correct optimized code." --Bill Harlan _______________________________________________ Python-ideas mailing list Python-ideas@python.org http://mail.python.org/mailman/listinfo/python-ideas
If the OP is asking for futures, couldn't that be implemented in a library without touching the language? It's a powerful enough feature to consider putting it in a library. It's going to be one of the 'primitives' of C++0x if one wanted a precedent (although I'm not suggesting everything C++ does is a good thing. Or even most of what C++ is a good thing).